| 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 18 matching lines...) Expand all Loading... |
| 29 class PrefNotifierImpl; | 29 class PrefNotifierImpl; |
| 30 class PrefObserver; | 30 class PrefObserver; |
| 31 class PrefRegistry; | 31 class PrefRegistry; |
| 32 class PrefValueStore; | 32 class PrefValueStore; |
| 33 class PrefStore; | 33 class PrefStore; |
| 34 | 34 |
| 35 namespace base { | 35 namespace base { |
| 36 class FilePath; | 36 class FilePath; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace content { | |
| 40 class BrowserContext; | |
| 41 } | |
| 42 | |
| 43 namespace subtle { | 39 namespace subtle { |
| 44 class PrefMemberBase; | 40 class PrefMemberBase; |
| 45 class ScopedUserPrefUpdateBase; | 41 class ScopedUserPrefUpdateBase; |
| 46 } | 42 } |
| 47 | 43 |
| 48 // Base class for PrefServices. You can use the base class to read and | 44 // Base class for PrefServices. You can use the base class to read and |
| 49 // interact with preferences, but not to register new preferences; for | 45 // interact with preferences, but not to register new preferences; for |
| 50 // that see e.g. PrefRegistrySimple. | 46 // that see e.g. PrefRegistrySimple. |
| 51 // | 47 // |
| 52 // Settings and storage accessed through this class represent | 48 // Settings and storage accessed through this class represent |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 const base::Value* GetPreferenceValue(const std::string& path) const; | 338 const base::Value* GetPreferenceValue(const std::string& path) const; |
| 343 | 339 |
| 344 // Local cache of registered Preference objects. The pref_registry_ | 340 // Local cache of registered Preference objects. The pref_registry_ |
| 345 // is authoritative with respect to what the types and default values | 341 // is authoritative with respect to what the types and default values |
| 346 // of registered preferences are. | 342 // of registered preferences are. |
| 347 mutable PreferenceMap prefs_map_; | 343 mutable PreferenceMap prefs_map_; |
| 348 | 344 |
| 349 DISALLOW_COPY_AND_ASSIGN(PrefService); | 345 DISALLOW_COPY_AND_ASSIGN(PrefService); |
| 350 }; | 346 }; |
| 351 | 347 |
| 352 // Retrieves a PrefService for the given context. | |
| 353 // | |
| 354 // TODO(joi): This doesn't really belong here, since it references a | |
| 355 // content type; probably best to get rid of it completely. | |
| 356 PrefService* PrefServiceFromBrowserContext(content::BrowserContext* context); | |
| 357 | |
| 358 #endif // BASE_PREFS_PREF_SERVICE_H_ | 348 #endif // BASE_PREFS_PREF_SERVICE_H_ |
| OLD | NEW |