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

Side by Side Diff: components/syncable_prefs/pref_model_associator.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
« no previous file with comments | « components/syncable_prefs/OWNERS ('k') | components/syncable_prefs/pref_model_associator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MODEL_ASSOCIATOR_H_ 5 #ifndef COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_H_
6 #define CHROME_BROWSER_PREFS_PREF_MODEL_ASSOCIATOR_H_ 6 #define COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/threading/non_thread_safe.h" 17 #include "base/threading/non_thread_safe.h"
18 #include "chrome/browser/prefs/synced_pref_observer.h" 18 #include "components/syncable_prefs/synced_pref_observer.h"
19 #include "sync/api/sync_data.h" 19 #include "sync/api/sync_data.h"
20 #include "sync/api/syncable_service.h" 20 #include "sync/api/syncable_service.h"
21 21
22 class PrefModelAssociatorClient; 22 class PrefModelAssociatorClient;
23 class PrefRegistrySyncable; 23 class PrefRegistrySyncable;
24 class PrefServiceSyncable; 24 class PrefServiceSyncable;
25 25
26 namespace sync_pb { 26 namespace sync_pb {
27 class PreferenceSpecifics; 27 class PreferenceSpecifics;
28 } 28 }
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 SyncedPrefObserverMap; 190 SyncedPrefObserverMap;
191 191
192 void NotifySyncedPrefObservers(const std::string& path, bool from_sync) const; 192 void NotifySyncedPrefObservers(const std::string& path, bool from_sync) const;
193 193
194 SyncedPrefObserverMap synced_pref_observers_; 194 SyncedPrefObserverMap synced_pref_observers_;
195 const PrefModelAssociatorClient* client_; // Weak. 195 const PrefModelAssociatorClient* client_; // Weak.
196 196
197 DISALLOW_COPY_AND_ASSIGN(PrefModelAssociator); 197 DISALLOW_COPY_AND_ASSIGN(PrefModelAssociator);
198 }; 198 };
199 199
200 #endif // CHROME_BROWSER_PREFS_PREF_MODEL_ASSOCIATOR_H_ 200 #endif // COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « components/syncable_prefs/OWNERS ('k') | components/syncable_prefs/pref_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698