| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PREFS_PREF_REGISTRY_SIMPLE_H_ | |
| 6 #define CHROME_BROWSER_PREFS_PREF_REGISTRY_SIMPLE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "chrome/browser/prefs/pref_registry.h" | |
| 11 | |
| 12 namespace base { | |
| 13 class DictionaryValue; | |
| 14 class FilePath; | |
| 15 class ListValue; | |
| 16 } | |
| 17 | |
| 18 // A simple implementation of PrefRegistry. | |
| 19 class PrefRegistrySimple : public PrefRegistry { | |
| 20 public: | |
| 21 PrefRegistrySimple(); | |
| 22 | |
| 23 void RegisterBooleanPref(const char* path, bool default_value); | |
| 24 void RegisterIntegerPref(const char* path, int default_value); | |
| 25 void RegisterDoublePref(const char* path, double default_value); | |
| 26 void RegisterStringPref(const char* path, const std::string& default_value); | |
| 27 void RegisterFilePathPref(const char* path, | |
| 28 const base::FilePath& default_value); | |
| 29 void RegisterListPref(const char* path); | |
| 30 void RegisterDictionaryPref(const char* path); | |
| 31 void RegisterListPref(const char* path, base::ListValue* default_value); | |
| 32 void RegisterDictionaryPref(const char* path, | |
| 33 base::DictionaryValue* default_value); | |
| 34 void RegisterInt64Pref(const char* path, | |
| 35 int64 default_value); | |
| 36 | |
| 37 private: | |
| 38 virtual ~PrefRegistrySimple(); | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySimple); | |
| 41 }; | |
| 42 | |
| 43 #endif // CHROME_BROWSER_PREFS_PREF_REGISTRY_SIMPLE_H_ | |
| OLD | NEW |