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

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

Issue 64193003: Clean up PrefServiceBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory ownership bug in ProxyPolicyTest Created 7 years, 1 month 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 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_
7 7
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/prefs/pref_model_associator.h" 9 #include "chrome/browser/prefs/pref_model_associator.h"
10 #include "chrome/browser/prefs/synced_pref_observer.h" 10 #include "chrome/browser/prefs/synced_pref_observer.h"
(...skipping 16 matching lines...) Expand all
27 // PrefService. For code that does not need to know about the sync 27 // PrefService. For code that does not need to know about the sync
28 // integration, you should use only the plain PrefService type. 28 // integration, you should use only the plain PrefService type.
29 // 29 //
30 // For this reason, Profile does not expose an accessor for the 30 // For this reason, Profile does not expose an accessor for the
31 // PrefServiceSyncable type. Instead, you can use the utilities 31 // PrefServiceSyncable type. Instead, you can use the utilities
32 // below to retrieve the PrefServiceSyncable (or its incognito 32 // below to retrieve the PrefServiceSyncable (or its incognito
33 // version) from a Profile. 33 // version) from a Profile.
34 static PrefServiceSyncable* FromProfile(Profile* profile); 34 static PrefServiceSyncable* FromProfile(Profile* profile);
35 static PrefServiceSyncable* IncognitoFromProfile(Profile* profile); 35 static PrefServiceSyncable* IncognitoFromProfile(Profile* profile);
36 36
37 // You may wish to use PrefServiceBuilder or one of its subclasses 37 // You may wish to use PrefServiceFactory or one of its subclasses
38 // for simplified construction. 38 // for simplified construction.
39 PrefServiceSyncable( 39 PrefServiceSyncable(
40 PrefNotifierImpl* pref_notifier, 40 PrefNotifierImpl* pref_notifier,
41 PrefValueStore* pref_value_store, 41 PrefValueStore* pref_value_store,
42 PersistentPrefStore* user_prefs, 42 PersistentPrefStore* user_prefs,
43 user_prefs::PrefRegistrySyncable* pref_registry, 43 user_prefs::PrefRegistrySyncable* pref_registry,
44 base::Callback<void(PersistentPrefStore::PrefReadError)> 44 base::Callback<void(PersistentPrefStore::PrefReadError)>
45 read_error_callback, 45 read_error_callback,
46 bool async); 46 bool async);
47 virtual ~PrefServiceSyncable(); 47 virtual ~PrefServiceSyncable();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 PrefModelAssociator pref_sync_associator_; 107 PrefModelAssociator pref_sync_associator_;
108 PrefModelAssociator priority_pref_sync_associator_; 108 PrefModelAssociator priority_pref_sync_associator_;
109 109
110 ObserverList<PrefServiceSyncableObserver> observer_list_; 110 ObserverList<PrefServiceSyncableObserver> observer_list_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable); 112 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable);
113 }; 113 };
114 114
115 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 115 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service_mock_factory.cc ('k') | chrome/browser/prefs/pref_service_syncable_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698