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