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

Side by Side Diff: components/syncable_prefs/pref_service_syncable.h

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 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
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 COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_H_
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 6 #define COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "chrome/browser/prefs/pref_model_associator.h"
13 #include "chrome/browser/prefs/synced_pref_observer.h"
14 #include "components/pref_registry/pref_registry_syncable.h" 12 #include "components/pref_registry/pref_registry_syncable.h"
13 #include "components/syncable_prefs/pref_model_associator.h"
14 #include "components/syncable_prefs/synced_pref_observer.h"
15 15
16 class PrefModelAssociatorClient; 16 class PrefModelAssociatorClient;
17 class PrefServiceSyncableObserver; 17 class PrefServiceSyncableObserver;
18 18
19 namespace syncer { 19 namespace syncer {
20 class SyncableService; 20 class SyncableService;
21 } 21 }
22 22
23 // A PrefService that can be synced. Users are forced to declare 23 // A PrefService that can be synced. Users are forced to declare
24 // whether preferences are syncable or not when registering them to 24 // whether preferences are syncable or not when registering them to
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 bool pref_service_forked_; 102 bool pref_service_forked_;
103 103
104 PrefModelAssociator pref_sync_associator_; 104 PrefModelAssociator pref_sync_associator_;
105 PrefModelAssociator priority_pref_sync_associator_; 105 PrefModelAssociator priority_pref_sync_associator_;
106 106
107 base::ObserverList<PrefServiceSyncableObserver> observer_list_; 107 base::ObserverList<PrefServiceSyncableObserver> observer_list_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable); 109 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable);
110 }; 110 };
111 111
112 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 112 #endif // COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_H_
OLDNEW
« no previous file with comments | « components/syncable_prefs/pref_service_mock_factory.cc ('k') | components/syncable_prefs/pref_service_syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698