Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 1 | // 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 | |
Gilad Arnold | 48415f1 | 2014-06-27 07:10:58 -0700 | [diff] [blame^] | 5 | #ifndef UPDATE_ENGINE_UPDATE_MANAGER_CONFIG_PROVIDER_H_ |
| 6 | #define UPDATE_ENGINE_UPDATE_MANAGER_CONFIG_PROVIDER_H_ |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 7 | |
Alex Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 8 | #include "update_engine/update_manager/provider.h" |
| 9 | #include "update_engine/update_manager/variable.h" |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 10 | |
Alex Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 11 | namespace chromeos_update_manager { |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 12 | |
| 13 | // Provider for const system configurations. This provider reads the |
| 14 | // configuration from a file on /etc. |
| 15 | class 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 Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 29 | } // namespace chromeos_update_manager |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 30 | |
Gilad Arnold | 48415f1 | 2014-06-27 07:10:58 -0700 | [diff] [blame^] | 31 | #endif // UPDATE_ENGINE_UPDATE_MANAGER_CONFIG_PROVIDER_H_ |