Index: chrome/browser/prefs/pref_value_store.h |
diff --git a/chrome/browser/prefs/pref_value_store.h b/chrome/browser/prefs/pref_value_store.h |
index 30c2017dfe05477ecc7ca43d80ebcfb9d543132b..5728924adb756b4214e946c1c7e3f2463161a905 100644 |
--- a/chrome/browser/prefs/pref_value_store.h |
+++ b/chrome/browser/prefs/pref_value_store.h |
@@ -71,6 +71,15 @@ class PrefValueStore { |
base::Value::Type type, |
const Value** out_value) const; |
+ // Gets the recommended value for the given preference name that has the |
+ // specified value type. A value stored in the recommended PrefStore that has |
+ // the matching |name| but a non-matching |type| is silently ignored. Returns |
+ // true if a valid value was found. Most callers should use |
+ // Preference::GetRecommendedValue() instead of calling this method directly. |
+ bool GetRecommendedValue(const std::string& name, |
+ base::Value::Type type, |
+ const Value** out_value) const; |
+ |
// These methods return true if a preference with the given name is in the |
// indicated pref store, even if that value is currently being overridden by |
// a higher-priority source. |
@@ -188,6 +197,16 @@ class PrefValueStore { |
PrefStoreType store, |
const Value** out_value) const; |
+ // Consults the PrefStores from |first_checked_store| to |last_checked_store| |
+ // in decreasing priority order, looking for a value with the given |name| and |
+ // |type|. Returns true if a valid value was found. Values with a matching |
+ // |name| but a non-matching |type| are silently skipped. |
+ bool GetValueInRange(const std::string& name, |
+ base::Value::Type type, |
+ const Value** out_value, |
+ PrefStoreType first_checked_store, |
+ PrefStoreType last_checked_store) const; |
+ |
// Called upon changes in individual pref stores in order to determine whether |
// the user-visible pref value has changed. Triggers the change notification |
// if the effective value of the preference has changed, or if the store |