blob: 55a4d7aa15f4ec2153780a9fe19411b4c5e08126 [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
Alex Deymo63784a52014-05-28 10:46:14 -07005#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_MANAGER_CONFIG_PROVIDER_H_
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_MANAGER_CONFIG_PROVIDER_H_
Alex Deymof9f12632014-04-17 13:51:26 -07007
Alex Deymo63784a52014-05-28 10:46:14 -07008#include "update_engine/update_manager/provider.h"
9#include "update_engine/update_manager/variable.h"
Alex Deymof9f12632014-04-17 13:51:26 -070010
Alex Deymo63784a52014-05-28 10:46:14 -070011namespace chromeos_update_manager {
Alex Deymof9f12632014-04-17 13:51:26 -070012
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
Alex Deymo63784a52014-05-28 10:46:14 -070029} // namespace chromeos_update_manager
Alex Deymof9f12632014-04-17 13:51:26 -070030
Alex Deymo63784a52014-05-28 10:46:14 -070031#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_MANAGER_CONFIG_PROVIDER_H_