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

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: Address review comments, fix gypi problem 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
« no previous file with comments | « base/prefs/public/pref_change_registrar_unittest.cc ('k') | base/prefs/testing_pref_store.h » ('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 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;
(...skipping 234 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
« no previous file with comments | « base/prefs/public/pref_change_registrar_unittest.cc ('k') | base/prefs/testing_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698