Index: base/prefs/pref_registry_simple.h |
diff --git a/base/prefs/pref_registry_simple.h b/base/prefs/pref_registry_simple.h |
index 73ae2169f1927eb79db876f8f94cebe99a4e4e8d..6b69e30cc0d0148845e9025852313ce249d55013 100644 |
--- a/base/prefs/pref_registry_simple.h |
+++ b/base/prefs/pref_registry_simple.h |
@@ -35,10 +35,49 @@ class BASE_PREFS_EXPORT PrefRegistrySimple : public PrefRegistry { |
void RegisterDictionaryPref(const std::string& path, |
base::DictionaryValue* default_value); |
void RegisterInt64Pref(const std::string& path, int64 default_value); |
+ void RegisterUint64Pref(const std::string&, uint64 default_value); |
- private: |
+ // Versions of registration functions that accept PrefRegistrationFlags. |
+ // |flags| is a bitmask of PrefRegistrationFlags. |
+ void RegisterBooleanPref(const std::string&, |
+ bool default_value, |
+ uint32 flags); |
+ void RegisterIntegerPref(const std::string&, int default_value, uint32 flags); |
+ void RegisterDoublePref(const std::string&, |
+ double default_value, |
+ uint32 flags); |
+ void RegisterStringPref(const std::string&, |
+ const std::string& default_value, |
+ uint32 flags); |
+ void RegisterFilePathPref(const std::string&, |
+ const base::FilePath& default_value, |
+ uint32 flags); |
+ void RegisterListPref(const std::string&, uint32 flags); |
+ void RegisterDictionaryPref(const std::string&, uint32 flags); |
+ void RegisterListPref(const std::string&, |
+ base::ListValue* default_value, |
+ uint32 flags); |
+ void RegisterDictionaryPref(const std::string&, |
+ base::DictionaryValue* default_value, |
+ uint32 flags); |
+ void RegisterInt64Pref(const std::string&, int64 default_value, uint32 flags); |
+ void RegisterUint64Pref(const std::string&, |
+ uint64 default_value, |
+ uint32 flags); |
+ |
+ protected: |
~PrefRegistrySimple() override; |
+ // Allows subclasses to hook into pref registration. |
+ virtual void OnPrefRegistered(const std::string&, |
+ base::Value* default_value, |
+ uint32 flags); |
+ |
+ private: |
+ void RegisterPrefAndNotify(const std::string&, |
+ base::Value* default_value, |
+ uint32 flags); |
+ |
DISALLOW_COPY_AND_ASSIGN(PrefRegistrySimple); |
}; |