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

Side by Side Diff: chrome/browser/prefs/pref_service.h

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prefs/pref_model_associator.cc ('k') | chrome/browser/prefs/pref_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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 16 matching lines...) Expand all
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 32
33 namespace content { 33 namespace content {
34 class NotificationObserver; 34 class NotificationObserver;
35 } 35 }
36 36
37 namespace csync { 37 namespace syncer {
38 class SyncableService; 38 class SyncableService;
39 } 39 }
40 40
41 namespace policy { 41 namespace policy {
42 class PolicyService; 42 class PolicyService;
43 } 43 }
44 44
45 namespace subtle { 45 namespace subtle {
46 class PrefMemberBase; 46 class PrefMemberBase;
47 class ScopedUserPrefUpdateBase; 47 class ScopedUserPrefUpdateBase;
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 base::DictionaryValue* GetPreferenceValues() const; 314 base::DictionaryValue* GetPreferenceValues() const;
315 315
316 // 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
317 // preference is not registered. 317 // preference is not registered.
318 const Preference* FindPreference(const char* pref_name) const; 318 const Preference* FindPreference(const char* pref_name) const;
319 319
320 bool ReadOnly() const; 320 bool ReadOnly() const;
321 321
322 PrefInitializationStatus GetInitializationStatus() const; 322 PrefInitializationStatus GetInitializationStatus() const;
323 323
324 // csync::SyncableService getter. 324 // syncer::SyncableService getter.
325 // TODO(zea): Have PrefService implement csync::SyncableService directly. 325 // TODO(zea): Have PrefService implement syncer::SyncableService directly.
326 csync::SyncableService* GetSyncableService(); 326 syncer::SyncableService* GetSyncableService();
327 327
328 // Tell our PrefValueStore to update itself using |command_line|. 328 // Tell our PrefValueStore to update itself using |command_line|.
329 // 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.
330 void UpdateCommandLinePrefStore(CommandLine* command_line); 330 void UpdateCommandLinePrefStore(CommandLine* command_line);
331 331
332 protected: 332 protected:
333 // Construct a new pref service. This constructor is what 333 // Construct a new pref service. This constructor is what
334 // 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.
335 PrefService(PrefNotifierImpl* pref_notifier, 335 PrefService(PrefNotifierImpl* pref_notifier,
336 PrefValueStore* pref_value_store, 336 PrefValueStore* pref_value_store,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 // Whether CreateIncognitoPrefService() or 425 // Whether CreateIncognitoPrefService() or
426 // CreatePrefServiceWithPerTabPrefStore() have been called to create a 426 // CreatePrefServiceWithPerTabPrefStore() have been called to create a
427 // "forked" PrefService. 427 // "forked" PrefService.
428 bool pref_service_forked_; 428 bool pref_service_forked_;
429 429
430 DISALLOW_COPY_AND_ASSIGN(PrefService); 430 DISALLOW_COPY_AND_ASSIGN(PrefService);
431 }; 431 };
432 432
433 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 433 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_model_associator.cc ('k') | chrome/browser/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698