| 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 COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_H_ | 5 #ifndef COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_H_ |
| 6 #define COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_H_ | 6 #define COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 13 #include "base/macros.h" | 14 #include "base/macros.h" |
| 14 #include "components/pref_registry/pref_registry_syncable.h" | 15 #include "components/pref_registry/pref_registry_syncable.h" |
| 15 #include "components/prefs/pref_service.h" | 16 #include "components/prefs/pref_service.h" |
| 16 #include "components/syncable_prefs/pref_model_associator.h" | 17 #include "components/sync_preferences/pref_model_associator.h" |
| 17 #include "components/syncable_prefs/synced_pref_observer.h" | 18 #include "components/sync_preferences/synced_pref_observer.h" |
| 18 | 19 |
| 19 namespace syncer { | 20 namespace syncer { |
| 20 class SyncableService; | 21 class SyncableService; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace syncable_prefs { | 24 namespace sync_preferences { |
| 24 | 25 |
| 25 class PrefModelAssociatorClient; | 26 class PrefModelAssociatorClient; |
| 26 class PrefServiceSyncableObserver; | 27 class PrefServiceSyncableObserver; |
| 27 | 28 |
| 28 // A PrefService that can be synced. Users are forced to declare | 29 // A PrefService that can be synced. Users are forced to declare |
| 29 // whether preferences are syncable or not when registering them to | 30 // whether preferences are syncable or not when registering them to |
| 30 // this PrefService. | 31 // this PrefService. |
| 31 class PrefServiceSyncable : public PrefService { | 32 class PrefServiceSyncable : public PrefService { |
| 32 public: | 33 public: |
| 33 // You may wish to use PrefServiceFactory or one of its subclasses | 34 // You may wish to use PrefServiceFactory or one of its subclasses |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 bool pref_service_forked_; | 110 bool pref_service_forked_; |
| 110 | 111 |
| 111 PrefModelAssociator pref_sync_associator_; | 112 PrefModelAssociator pref_sync_associator_; |
| 112 PrefModelAssociator priority_pref_sync_associator_; | 113 PrefModelAssociator priority_pref_sync_associator_; |
| 113 | 114 |
| 114 base::ObserverList<PrefServiceSyncableObserver> observer_list_; | 115 base::ObserverList<PrefServiceSyncableObserver> observer_list_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable); | 117 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace syncable_prefs | 120 } // namespace sync_preferences |
| 120 | 121 |
| 121 #endif // COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_H_ | 122 #endif // COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_H_ |
| OLD | NEW |