OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |