Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: base/prefs/pref_value_store.h

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 BASE_PREFS_PREF_VALUE_STORE_H_ 5 #ifndef BASE_PREFS_PREF_VALUE_STORE_H_
6 #define BASE_PREFS_PREF_VALUE_STORE_H_ 6 #define BASE_PREFS_PREF_VALUE_STORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // true if a valid value was found. Most callers should use 88 // true if a valid value was found. Most callers should use
89 // Preference::GetRecommendedValue() instead of calling this method directly. 89 // Preference::GetRecommendedValue() instead of calling this method directly.
90 bool GetRecommendedValue(const std::string& name, 90 bool GetRecommendedValue(const std::string& name,
91 base::Value::Type type, 91 base::Value::Type type,
92 const base::Value** out_value) const; 92 const base::Value** out_value) const;
93 93
94 // These methods return true if a preference with the given name is in the 94 // These methods return true if a preference with the given name is in the
95 // indicated pref store, even if that value is currently being overridden by 95 // indicated pref store, even if that value is currently being overridden by
96 // a higher-priority source. 96 // a higher-priority source.
97 bool PrefValueInManagedStore(const std::string& name) const; 97 bool PrefValueInManagedStore(const std::string& name) const;
98 bool PrefValueInSupervisedStore(const std::string& name) const;
98 bool PrefValueInExtensionStore(const std::string& name) const; 99 bool PrefValueInExtensionStore(const std::string& name) const;
99 bool PrefValueInUserStore(const std::string& name) const; 100 bool PrefValueInUserStore(const std::string& name) const;
100 101
101 // These methods return true if a preference with the given name is actually 102 // These methods return true if a preference with the given name is actually
102 // being controlled by the indicated pref store and not being overridden by 103 // being controlled by the indicated pref store and not being overridden by
103 // a higher-priority source. 104 // a higher-priority source.
104 bool PrefValueFromExtensionStore(const std::string& name) const; 105 bool PrefValueFromExtensionStore(const std::string& name) const;
105 bool PrefValueFromUserStore(const std::string& name) const; 106 bool PrefValueFromUserStore(const std::string& name) const;
106 bool PrefValueFromRecommendedStore(const std::string& name) const; 107 bool PrefValueFromRecommendedStore(const std::string& name) const;
107 bool PrefValueFromDefaultStore(const std::string& name) const; 108 bool PrefValueFromDefaultStore(const std::string& name) const;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // A mapping of preference names to their registered types. 259 // A mapping of preference names to their registered types.
259 PrefTypeMap pref_types_; 260 PrefTypeMap pref_types_;
260 261
261 // True if not all of the PrefStores were initialized successfully. 262 // True if not all of the PrefStores were initialized successfully.
262 bool initialization_failed_; 263 bool initialization_failed_;
263 264
264 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); 265 DISALLOW_COPY_AND_ASSIGN(PrefValueStore);
265 }; 266 };
266 267
267 #endif // BASE_PREFS_PREF_VALUE_STORE_H_ 268 #endif // BASE_PREFS_PREF_VALUE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698