Alex Deymo | 94c0616 | 2014-03-21 20:34:46 -0700 | [diff] [blame] | 1 | // 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 | |
Gilad Arnold | 1f84723 | 2014-04-07 12:07:49 -0700 | [diff] [blame] | 8 | #include "update_engine/dbus_wrapper_interface.h" |
Alex Deymo | 94c0616 | 2014-03-21 20:34:46 -0700 | [diff] [blame] | 9 | #include "update_engine/policy_manager/state.h" |
Gilad Arnold | ae47a9a | 2014-03-26 12:16:47 -0700 | [diff] [blame] | 10 | #include "update_engine/system_state.h" |
Alex Deymo | 94c0616 | 2014-03-21 20:34:46 -0700 | [diff] [blame] | 11 | |
| 12 | namespace chromeos_policy_manager { |
| 13 | |
Gilad Arnold | ae47a9a | 2014-03-26 12:16:47 -0700 | [diff] [blame] | 14 | // Creates and initializes a new PolicyManager State instance containing real |
| 15 | // providers instantiated using the passed interfaces. The State doesn't take |
| 16 | // ownership of the passed interfaces, which need to remain available during the |
| 17 | // life of this instance. Returns null if one of the underlying providers fails |
| 18 | // to initialize. |
Alex Deymo | c83baf6 | 2014-04-02 17:43:35 -0700 | [diff] [blame^] | 19 | State* DefaultStateFactory( |
| 20 | policy::PolicyProvider* policy_provider, |
| 21 | chromeos_update_engine::DBusWrapperInterface* dbus, |
| 22 | chromeos_update_engine::SystemState* system_state); |
Alex Deymo | 94c0616 | 2014-03-21 20:34:46 -0700 | [diff] [blame] | 23 | |
| 24 | } // namespace chromeos_policy_manager |
| 25 | |
| 26 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_ |