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

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

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 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
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 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
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_
OLDNEW
« no previous file with comments | « components/sync_preferences/pref_service_mock_factory.cc ('k') | components/sync_preferences/pref_service_syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698