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 | |
Alex Deymo | 94c0616 | 2014-03-21 20:34:46 -0700 | [diff] [blame] | 8 | #include "update_engine/policy_manager/state.h" |
Gilad Arnold | ae47a9a | 2014-03-26 12:16:47 -0700 | [diff] [blame^] | 9 | #include "update_engine/system_state.h" |
Alex Deymo | 94c0616 | 2014-03-21 20:34:46 -0700 | [diff] [blame] | 10 | |
| 11 | namespace chromeos_policy_manager { |
| 12 | |
Gilad Arnold | ae47a9a | 2014-03-26 12:16:47 -0700 | [diff] [blame^] | 13 | // 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. |
| 18 | State* DefaultStateFactory(chromeos_update_engine::DBusWrapperInterface* dbus, |
| 19 | chromeos_update_engine::SystemState* system_state); |
Alex Deymo | 94c0616 | 2014-03-21 20:34:46 -0700 | [diff] [blame] | 20 | |
| 21 | } // namespace chromeos_policy_manager |
| 22 | |
| 23 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_ |