| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class Value; | 24 class Value; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace enterprise_management { | 27 namespace enterprise_management { |
| 28 class ChromeDeviceSettingsProto; | 28 class ChromeDeviceSettingsProto; |
| 29 } // namespace enterprise_management | 29 } // namespace enterprise_management |
| 30 | 30 |
| 31 namespace chromeos { | 31 namespace chromeos { |
| 32 | 32 |
| 33 // CrosSettingsProvider implementation that works with device settings. | 33 // CrosSettingsProvider implementation that works with device settings. |
| 34 // |
| 35 // Note that the write path is in the process of being migrated to |
| 36 // OwnerSettingsServiceChromeOS (crbug.com/230018). |
| 34 class DeviceSettingsProvider : public CrosSettingsProvider, | 37 class DeviceSettingsProvider : public CrosSettingsProvider, |
| 35 public DeviceSettingsService::Observer { | 38 public DeviceSettingsService::Observer { |
| 36 public: | 39 public: |
| 37 // The callback type that is called to get the device mode. | 40 // The callback type that is called to get the device mode. |
| 38 typedef base::Callback<policy::DeviceMode(void)> GetDeviceModeCallback; | 41 typedef base::Callback<policy::DeviceMode(void)> GetDeviceModeCallback; |
| 39 | 42 |
| 40 DeviceSettingsProvider(const NotifyObserversCallback& notify_cb, | 43 DeviceSettingsProvider(const NotifyObserversCallback& notify_cb, |
| 41 DeviceSettingsService* device_settings_service); | 44 DeviceSettingsService* device_settings_service); |
| 42 virtual ~DeviceSettingsProvider(); | 45 virtual ~DeviceSettingsProvider(); |
| 43 | 46 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 InitializationTestUnowned); | 152 InitializationTestUnowned); |
| 150 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, | 153 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, |
| 151 PolicyFailedPermanentlyNotification); | 154 PolicyFailedPermanentlyNotification); |
| 152 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification); | 155 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification); |
| 153 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); | 156 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } // namespace chromeos | 159 } // namespace chromeos |
| 157 | 160 |
| 158 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ | 161 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ |
| OLD | NEW |