OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEVICE_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 16 matching lines...) Expand all Loading... |
27 } | 27 } |
28 | 28 |
29 namespace chromeos { | 29 namespace chromeos { |
30 | 30 |
31 class OwnershipService; | 31 class OwnershipService; |
32 | 32 |
33 // CrosSettingsProvider implementation that works with SignedSettings. | 33 // CrosSettingsProvider implementation that works with SignedSettings. |
34 class DeviceSettingsProvider : public CrosSettingsProvider, | 34 class DeviceSettingsProvider : public CrosSettingsProvider, |
35 public content::NotificationObserver { | 35 public content::NotificationObserver { |
36 public: | 36 public: |
37 DeviceSettingsProvider(); | 37 explicit DeviceSettingsProvider(const NotifyObserversCallback& notify_cb); |
38 virtual ~DeviceSettingsProvider(); | 38 virtual ~DeviceSettingsProvider(); |
39 | 39 |
40 // CrosSettingsProvider implementation. | 40 // CrosSettingsProvider implementation. |
41 virtual const base::Value* Get(const std::string& path) const OVERRIDE; | 41 virtual const base::Value* Get(const std::string& path) const OVERRIDE; |
42 virtual bool GetTrusted(const std::string& path, | 42 virtual bool GetTrusted(const std::string& path, |
43 const base::Closure& callback) OVERRIDE; | 43 const base::Closure& callback) OVERRIDE; |
44 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; | 44 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; |
45 virtual void Reload() OVERRIDE; | 45 virtual void Reload() OVERRIDE; |
46 | 46 |
47 private: | 47 private: |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 PrefValueMap values_cache_; | 122 PrefValueMap values_cache_; |
123 | 123 |
124 friend class SignedSettingsHelper; | 124 friend class SignedSettingsHelper; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); | 126 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace chromeos | 129 } // namespace chromeos |
130 | 130 |
131 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ | 131 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ |
OLD | NEW |