| 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 11 matching lines...) Expand all  Loading... | 
| 22 | 22 | 
| 23 class CommandLine; | 23 class CommandLine; | 
| 24 class DefaultPrefStore; | 24 class DefaultPrefStore; | 
| 25 class FilePath; | 25 class FilePath; | 
| 26 class PersistentPrefStore; | 26 class PersistentPrefStore; | 
| 27 class PrefModelAssociator; | 27 class PrefModelAssociator; | 
| 28 class PrefNotifier; | 28 class PrefNotifier; | 
| 29 class PrefNotifierImpl; | 29 class PrefNotifierImpl; | 
| 30 class PrefStore; | 30 class PrefStore; | 
| 31 class PrefValueStore; | 31 class PrefValueStore; | 
| 32 class SyncableService; |  | 
| 33 | 32 | 
| 34 namespace content { | 33 namespace content { | 
| 35 class NotificationObserver; | 34 class NotificationObserver; | 
| 36 } | 35 } | 
| 37 | 36 | 
| 38 namespace policy{ | 37 namespace csync { | 
|  | 38 class SyncableService; | 
|  | 39 } | 
|  | 40 | 
|  | 41 namespace policy { | 
| 39 class PolicyService; | 42 class PolicyService; | 
| 40 } | 43 } | 
| 41 | 44 | 
| 42 namespace subtle { | 45 namespace subtle { | 
| 43 class PrefMemberBase; | 46 class PrefMemberBase; | 
| 44 class ScopedUserPrefUpdateBase; | 47 class ScopedUserPrefUpdateBase; | 
| 45 }; | 48 }; | 
| 46 | 49 | 
| 47 class PrefService : public base::NonThreadSafe { | 50 class PrefService : public base::NonThreadSafe { | 
| 48  public: | 51  public: | 
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 311   base::DictionaryValue* GetPreferenceValues() const; | 314   base::DictionaryValue* GetPreferenceValues() const; | 
| 312 | 315 | 
| 313   // A helper method to quickly look up a preference.  Returns NULL if the | 316   // A helper method to quickly look up a preference.  Returns NULL if the | 
| 314   // preference is not registered. | 317   // preference is not registered. | 
| 315   const Preference* FindPreference(const char* pref_name) const; | 318   const Preference* FindPreference(const char* pref_name) const; | 
| 316 | 319 | 
| 317   bool ReadOnly() const; | 320   bool ReadOnly() const; | 
| 318 | 321 | 
| 319   PrefInitializationStatus GetInitializationStatus() const; | 322   PrefInitializationStatus GetInitializationStatus() const; | 
| 320 | 323 | 
| 321   // SyncableService getter. | 324   // csync::SyncableService getter. | 
| 322   // TODO(zea): Have PrefService implement SyncableService directly. | 325   // TODO(zea): Have PrefService implement csync::SyncableService directly. | 
| 323   SyncableService* GetSyncableService(); | 326   csync::SyncableService* GetSyncableService(); | 
| 324 | 327 | 
| 325   // Tell our PrefValueStore to update itself using |command_line|. | 328   // Tell our PrefValueStore to update itself using |command_line|. | 
| 326   // Do not call this after having derived an incognito or per tab pref service. | 329   // Do not call this after having derived an incognito or per tab pref service. | 
| 327   void UpdateCommandLinePrefStore(CommandLine* command_line); | 330   void UpdateCommandLinePrefStore(CommandLine* command_line); | 
| 328 | 331 | 
| 329  protected: | 332  protected: | 
| 330   // Construct a new pref service. This constructor is what | 333   // Construct a new pref service. This constructor is what | 
| 331   // factory methods end up calling and what is used for unit tests. | 334   // factory methods end up calling and what is used for unit tests. | 
| 332   PrefService(PrefNotifierImpl* pref_notifier, | 335   PrefService(PrefNotifierImpl* pref_notifier, | 
| 333               PrefValueStore* pref_value_store, | 336               PrefValueStore* pref_value_store, | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 421 | 424 | 
| 422   // Whether CreateIncognitoPrefService() or | 425   // Whether CreateIncognitoPrefService() or | 
| 423   // CreatePrefServiceWithPerTabPrefStore() have been called to create a | 426   // CreatePrefServiceWithPerTabPrefStore() have been called to create a | 
| 424   // "forked" PrefService. | 427   // "forked" PrefService. | 
| 425   bool pref_service_forked_; | 428   bool pref_service_forked_; | 
| 426 | 429 | 
| 427   DISALLOW_COPY_AND_ASSIGN(PrefService); | 430   DISALLOW_COPY_AND_ASSIGN(PrefService); | 
| 428 }; | 431 }; | 
| 429 | 432 | 
| 430 #endif  // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ | 433 #endif  // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ | 
| OLD | NEW | 
|---|