| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CROS_SETTINGS_PROVIDER_USER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_SETTINGS_PROVIDER_USER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_SETTINGS_PROVIDER_USER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_SETTINGS_PROVIDER_USER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" |
| 9 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| 10 #include "base/scoped_ptr.h" | |
| 11 #include "chrome/browser/chromeos/cros_settings_provider.h" | 11 #include "chrome/browser/chromeos/cros_settings_provider.h" |
| 12 | 12 |
| 13 class DictionaryValue; | 13 class DictionaryValue; |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 class UserCrosSettingsProvider : public CrosSettingsProvider { | 17 class UserCrosSettingsProvider : public CrosSettingsProvider { |
| 18 public: | 18 public: |
| 19 virtual void Set(const std::string& path, Value* in_value); | 19 virtual void Set(const std::string& path, Value* in_value); |
| 20 virtual bool Get(const std::string& path, Value** out_value) const; | 20 virtual bool Get(const std::string& path, Value** out_value) const; |
| 21 virtual bool HandlesSetting(const std::string& path); | 21 virtual bool HandlesSetting(const std::string& path); |
| 22 UserCrosSettingsProvider(); | 22 UserCrosSettingsProvider(); |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 scoped_ptr<DictionaryValue> dict_; | 25 scoped_ptr<DictionaryValue> dict_; |
| 26 | 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider); | 27 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace chromeos | 30 } // namespace chromeos |
| 31 | 31 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_CROS_SETTINGS_PROVIDER_USER_H_ | 32 #endif // CHROME_BROWSER_CHROMEOS_CROS_SETTINGS_PROVIDER_USER_H_ |
| OLD | NEW |