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