OLD | NEW |
---|---|
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 // This provides a way to access the application's current preferences. | 5 // This provides a way to access the application's current preferences. |
6 | 6 |
7 // Chromium settings and storage represent user-selected preferences and | 7 // Chromium settings and storage represent user-selected preferences and |
8 // information and MUST not be extracted, overwritten or modified except | 8 // information and MUST not be extracted, overwritten or modified except |
9 // through Chromium defined APIs. | 9 // through Chromium defined APIs. |
10 | 10 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 // Returns true if a value has been set for the specified path. | 229 // Returns true if a value has been set for the specified path. |
230 // NOTE: this is NOT the same as FindPreference. In particular | 230 // NOTE: this is NOT the same as FindPreference. In particular |
231 // FindPreference returns whether RegisterXXX has been invoked, where as | 231 // FindPreference returns whether RegisterXXX has been invoked, where as |
232 // this checks if a value exists for the path. | 232 // this checks if a value exists for the path. |
233 bool HasPrefPath(const char* path) const; | 233 bool HasPrefPath(const char* path) const; |
234 | 234 |
235 // Returns a dictionary with effective preference values. The ownership | 235 // Returns a dictionary with effective preference values. The ownership |
236 // is passed to the caller. | 236 // is passed to the caller. |
237 base::DictionaryValue* GetPreferenceValues() const; | 237 base::DictionaryValue* GetPreferenceValues() const; |
238 | 238 |
239 // Returns a flat dictionary with effective preference values, that is, will | |
240 // not split paths on '.' characters to get values into nested dictionaries. | |
241 // The ownership is passed to the caller. | |
battre
2013/09/25 09:43:26
My suggestion:
Returns a dictionary with effectiv
robertshield
2013/09/25 20:18:12
Don't have much to add other than a big +1 on prov
engedy
2013/09/27 23:27:34
Done.
| |
242 base::DictionaryValue* GetPreferenceValuesWithoutPathExpansion() const; | |
243 | |
239 bool ReadOnly() const; | 244 bool ReadOnly() const; |
240 | 245 |
241 PrefInitializationStatus GetInitializationStatus() const; | 246 PrefInitializationStatus GetInitializationStatus() const; |
242 | 247 |
243 // Tell our PrefValueStore to update itself to |command_line_store|. | 248 // Tell our PrefValueStore to update itself to |command_line_store|. |
244 // Takes ownership of the store. | 249 // Takes ownership of the store. |
245 virtual void UpdateCommandLinePrefStore(PrefStore* command_line_store); | 250 virtual void UpdateCommandLinePrefStore(PrefStore* command_line_store); |
246 | 251 |
247 // We run the callback once, when initialization completes. The bool | 252 // We run the callback once, when initialization completes. The bool |
248 // parameter will be set to true for successful initialization, | 253 // parameter will be set to true for successful initialization, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
345 | 350 |
346 // Local cache of registered Preference objects. The pref_registry_ | 351 // Local cache of registered Preference objects. The pref_registry_ |
347 // is authoritative with respect to what the types and default values | 352 // is authoritative with respect to what the types and default values |
348 // of registered preferences are. | 353 // of registered preferences are. |
349 mutable PreferenceMap prefs_map_; | 354 mutable PreferenceMap prefs_map_; |
350 | 355 |
351 DISALLOW_COPY_AND_ASSIGN(PrefService); | 356 DISALLOW_COPY_AND_ASSIGN(PrefService); |
352 }; | 357 }; |
353 | 358 |
354 #endif // BASE_PREFS_PREF_SERVICE_H_ | 359 #endif // BASE_PREFS_PREF_SERVICE_H_ |
OLD | NEW |