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

Side by Side Diff: base/prefs/public/pref_service_base.h

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort headers Created 8 years, 2 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.
11 // 11 //
12 // Chromium settings and storage represent user-selected preferences and 12 // Chromium settings and storage represent user-selected preferences and
13 // information and MUST not be extracted, overwritten or modified except 13 // information and MUST not be extracted, overwritten or modified except
14 // through Chromium defined APIs. 14 // through Chromium defined APIs.
15 15
16 #ifndef CHROME_BROWSER_API_PREFS_PREF_SERVICE_BASE_H_ 16 #ifndef BASE_PREFS_PUBLIC_PREF_SERVICE_BASE_H_
17 #define CHROME_BROWSER_API_PREFS_PREF_SERVICE_BASE_H_ 17 #define BASE_PREFS_PUBLIC_PREF_SERVICE_BASE_H_
18 18
19 #include "base/values.h" 19 #include "base/values.h"
20 20
21 namespace content { 21 namespace content {
22 class BrowserContext; 22 class BrowserContext;
23 class NotificationObserver; 23 class NotificationObserver;
24 } 24 }
25 25
26 namespace subtle { 26 namespace subtle {
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 {
Mattias Nissler (ping if slow) 2012/10/22 15:03:12 Just to verify: I guess the plan is to reconcile P
Jói 2012/10/22 15:31:58 Yes, once dependencies back to chrome/ have been b
35 public: 35 public:
36 // Retrieves a PrefServiceBase for the given context. 36 // Retrieves a PrefServiceBase for the given context.
37 static PrefServiceBase* FromBrowserContext(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 {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // If the pref at the given path changes, we call the observer's Observe 262 // If the pref at the given path changes, we call the observer's Observe
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 // BASE_PREFS_PUBLIC_PREF_SERVICE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698