blob: bc60ba1d1880fa434c9bd2e1c08c5f920b4ed47c [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
Gilad Arnold1f847232014-04-07 12:07:49 -07008#include "update_engine/dbus_wrapper_interface.h"
Alex Deymo94c06162014-03-21 20:34:46 -07009#include "update_engine/policy_manager/state.h"
Gilad Arnoldae47a9a2014-03-26 12:16:47 -070010#include "update_engine/system_state.h"
Alex Deymo94c06162014-03-21 20:34:46 -070011
12namespace chromeos_policy_manager {
13
Gilad Arnoldae47a9a2014-03-26 12:16:47 -070014// 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 Deymoc83baf62014-04-02 17:43:35 -070019State* DefaultStateFactory(
20 policy::PolicyProvider* policy_provider,
21 chromeos_update_engine::DBusWrapperInterface* dbus,
22 chromeos_update_engine::SystemState* system_state);
Alex Deymo94c06162014-03-21 20:34:46 -070023
24} // namespace chromeos_policy_manager
25
26#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_