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_USER_CROS_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // Reloads values from device settings. | 35 // Reloads values from device settings. |
36 void Reload(); | 36 void Reload(); |
37 | 37 |
38 // CrosSettingsProvider implementation. | 38 // CrosSettingsProvider implementation. |
39 virtual const base::Value* Get(const std::string& path) const OVERRIDE; | 39 virtual const base::Value* Get(const std::string& path) const OVERRIDE; |
40 virtual bool GetTrusted(const std::string& path, | 40 virtual bool GetTrusted(const std::string& path, |
41 const base::Closure& callback) const OVERRIDE; | 41 const base::Closure& callback) const OVERRIDE; |
42 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; | 42 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; |
43 | 43 |
44 // Updates cached value of the owner. | |
45 static void UpdateCachedOwner(const std::string& email); | |
46 | |
47 private: | 44 private: |
48 // CrosSettingsProvider implementation. | 45 // CrosSettingsProvider implementation. |
49 virtual void DoSet(const std::string& path, | 46 virtual void DoSet(const std::string& path, |
50 const base::Value& value) OVERRIDE; | 47 const base::Value& value) OVERRIDE; |
51 | 48 |
52 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider); | 49 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider); |
53 }; | 50 }; |
54 | 51 |
55 } // namespace chromeos | 52 } // namespace chromeos |
56 | 53 |
57 #endif // CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ |
OLD | NEW |