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

Side by Side Diff: base/prefs/pref_service.h

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 9 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 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 18 matching lines...) Expand all
29 class PrefNotifierImpl; 29 class PrefNotifierImpl;
30 class PrefObserver; 30 class PrefObserver;
31 class PrefRegistry; 31 class PrefRegistry;
32 class PrefValueStore; 32 class PrefValueStore;
33 class PrefStore; 33 class PrefStore;
34 34
35 namespace base { 35 namespace base {
36 class FilePath; 36 class FilePath;
37 } 37 }
38 38
39 namespace content {
40 class BrowserContext;
41 }
42
43 namespace subtle { 39 namespace subtle {
44 class PrefMemberBase; 40 class PrefMemberBase;
45 class ScopedUserPrefUpdateBase; 41 class ScopedUserPrefUpdateBase;
46 } 42 }
47 43
48 // Base class for PrefServices. You can use the base class to read and 44 // Base class for PrefServices. You can use the base class to read and
49 // interact with preferences, but not to register new preferences; for 45 // interact with preferences, but not to register new preferences; for
50 // that see e.g. PrefRegistrySimple. 46 // that see e.g. PrefRegistrySimple.
51 // 47 //
52 // Settings and storage accessed through this class represent 48 // Settings and storage accessed through this class represent
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 const base::Value* GetPreferenceValue(const std::string& path) const; 344 const base::Value* GetPreferenceValue(const std::string& path) const;
349 345
350 // Local cache of registered Preference objects. The pref_registry_ 346 // Local cache of registered Preference objects. The pref_registry_
351 // is authoritative with respect to what the types and default values 347 // is authoritative with respect to what the types and default values
352 // of registered preferences are. 348 // of registered preferences are.
353 mutable PreferenceMap prefs_map_; 349 mutable PreferenceMap prefs_map_;
354 350
355 DISALLOW_COPY_AND_ASSIGN(PrefService); 351 DISALLOW_COPY_AND_ASSIGN(PrefService);
356 }; 352 };
357 353
358 // Retrieves a PrefService for the given context.
359 //
360 // TODO(joi): This doesn't really belong here, since it references a
361 // content type; probably best to get rid of it completely.
362 PrefService* PrefServiceFromBrowserContext(content::BrowserContext* context);
363
364 #endif // BASE_PREFS_PREF_SERVICE_H_ 354 #endif // BASE_PREFS_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | base/prefs/pref_service.cc » ('j') | components/user_prefs/pref_registry_syncable.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698