blob: bc60ba1d1880fa434c9bd2e1c08c5f920b4ed47c [file] [log] [blame]
// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_
#include "update_engine/dbus_wrapper_interface.h"
#include "update_engine/policy_manager/state.h"
#include "update_engine/system_state.h"
namespace chromeos_policy_manager {
// Creates and initializes a new PolicyManager State instance containing real
// providers instantiated using the passed interfaces. The State doesn't take
// ownership of the passed interfaces, which need to remain available during the
// life of this instance. Returns null if one of the underlying providers fails
// to initialize.
State* DefaultStateFactory(
policy::PolicyProvider* policy_provider,
chromeos_update_engine::DBusWrapperInterface* dbus,
chromeos_update_engine::SystemState* system_state);
} // namespace chromeos_policy_manager
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_STATE_FACTORY_H_