blob: b113f2aca6fe8cd1016fcd2d21d6add0cc15857d [file] [log] [blame]
Alex Deymof9f12632014-04-17 13:51:26 -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_CONFIG_PROVIDER_H_
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_CONFIG_PROVIDER_H_
7
Alex Deymof9f12632014-04-17 13:51:26 -07008#include "update_engine/policy_manager/provider.h"
9#include "update_engine/policy_manager/variable.h"
10
11namespace chromeos_policy_manager {
12
13// Provider for const system configurations. This provider reads the
14// configuration from a file on /etc.
15class ConfigProvider : public Provider {
16 public:
17 // Returns a variable stating whether the out of the box experience (OOBE) is
18 // enabled on this device. A value of false means that the device doesn't have
19 // an OOBE workflow.
20 virtual Variable<bool>* var_is_oobe_enabled() = 0;
21
22 protected:
23 ConfigProvider() {}
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(ConfigProvider);
27};
28
29} // namespace chromeos_policy_manager
30
31#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_CONFIG_PROVIDER_H_