blob: 58e68130b4f305fe3d090a355320108b66714147 [file] [log] [blame]
Alex Deymo94c06162014-03-21 20:34:46 -07001// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_
7
Alex Deymo94c06162014-03-21 20:34:46 -07008#include "update_engine/policy_manager/state.h"
Gilad Arnoldae47a9a2014-03-26 12:16:47 -07009#include "update_engine/system_state.h"
Alex Deymo94c06162014-03-21 20:34:46 -070010
11namespace chromeos_policy_manager {
12
Gilad Arnoldae47a9a2014-03-26 12:16:47 -070013// Creates and initializes a new PolicyManager State instance containing real
14// providers instantiated using the passed interfaces. The State doesn't take
15// ownership of the passed interfaces, which need to remain available during the
16// life of this instance. Returns null if one of the underlying providers fails
17// to initialize.
18State* DefaultStateFactory(chromeos_update_engine::DBusWrapperInterface* dbus,
19 chromeos_update_engine::SystemState* system_state);
Alex Deymo94c06162014-03-21 20:34:46 -070020
21} // namespace chromeos_policy_manager
22
23#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_