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

Side by Side Diff: chrome/browser/api/prefs/pref_service_base.h

Issue 10956034: Switching from ForXyz naming to FromXyz naming, for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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
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 is the base interface for a preference services that provides 5 // This is the base interface for a preference services that provides
6 // a way to access the application's current preferences. 6 // a way to access the application's current preferences.
7 // 7 //
8 // This base interface assumes all preferences are local. See 8 // This base interface assumes all preferences are local. See
9 // SyncablePrefServiceBase for the interface to a preference service 9 // SyncablePrefServiceBase for the interface to a preference service
10 // that stores preferences that can be synced. 10 // that stores preferences that can be synced.
(...skipping 16 matching lines...) Expand all
27 class PrefMemberBase; 27 class PrefMemberBase;
28 } 28 }
29 29
30 class FilePath; 30 class FilePath;
31 class Profile; 31 class Profile;
32 class TabContents; 32 class TabContents;
33 33
34 class PrefServiceBase { 34 class PrefServiceBase {
35 public: 35 public:
36 // Retrieves a PrefServiceBase for the given context. 36 // Retrieves a PrefServiceBase for the given context.
37 static PrefServiceBase* ForContext(content::BrowserContext* context); 37 static PrefServiceBase* FromBrowserContext(content::BrowserContext* context);
38 38
39 virtual ~PrefServiceBase() {} 39 virtual ~PrefServiceBase() {}
40 40
41 // Enum used when registering preferences to determine if it should be synced 41 // Enum used when registering preferences to determine if it should be synced
42 // or not. This is only used for profile prefs, not local state prefs. 42 // or not. This is only used for profile prefs, not local state prefs.
43 // See the Register*Pref methods for profile prefs below. 43 // See the Register*Pref methods for profile prefs below.
44 enum PrefSyncStatus { 44 enum PrefSyncStatus {
45 UNSYNCABLE_PREF, 45 UNSYNCABLE_PREF,
46 SYNCABLE_PREF 46 SYNCABLE_PREF
47 }; 47 };
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // method with PREF_CHANGED. Note that observers should not call these methods 263 // method with PREF_CHANGED. Note that observers should not call these methods
264 // directly but rather use a PrefChangeRegistrar to make sure the observer 264 // directly but rather use a PrefChangeRegistrar to make sure the observer
265 // gets cleaned up properly. 265 // gets cleaned up properly.
266 virtual void AddPrefObserver(const char* path, 266 virtual void AddPrefObserver(const char* path,
267 content::NotificationObserver* obs) = 0; 267 content::NotificationObserver* obs) = 0;
268 virtual void RemovePrefObserver(const char* path, 268 virtual void RemovePrefObserver(const char* path,
269 content::NotificationObserver* obs) = 0; 269 content::NotificationObserver* obs) = 0;
270 }; 270 };
271 271
272 #endif // CHROME_BROWSER_API_PREFS_PREF_SERVICE_BASE_H_ 272 #endif // CHROME_BROWSER_API_PREFS_PREF_SERVICE_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/api/infobars/infobar_service.h ('k') | chrome/browser/api/sync/profile_sync_service_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698