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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; | 43 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; |
44 | 44 |
45 static void WhitelistUser(const std::string& email); | 45 static void WhitelistUser(const std::string& email); |
46 static void UnwhitelistUser(const std::string& email); | 46 static void UnwhitelistUser(const std::string& email); |
47 | 47 |
48 // Updates cached value of the owner. | 48 // Updates cached value of the owner. |
49 static void UpdateCachedOwner(const std::string& email); | 49 static void UpdateCachedOwner(const std::string& email); |
50 | 50 |
51 private: | 51 private: |
52 // CrosSettingsProvider implementation. | 52 // CrosSettingsProvider implementation. |
53 virtual void DoSet(const std::string& path, base::Value* value) OVERRIDE; | 53 virtual void DoSet(const std::string& path, |
| 54 const base::Value& value) OVERRIDE; |
54 | 55 |
55 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider); | 56 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider); |
56 }; | 57 }; |
57 | 58 |
58 } // namespace chromeos | 59 } // namespace chromeos |
59 | 60 |
60 #endif // CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ | 61 #endif // CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ |
OLD | NEW |