| 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_SYNC_BASE_SYNC_PREFS_H_ | 5 #ifndef COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
| 6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ | 6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
| 21 #include "components/prefs/pref_member.h" | 21 #include "components/prefs/pref_member.h" |
| 22 #include "components/sync/base/model_type.h" | 22 #include "components/sync/base/model_type.h" |
| 23 #include "components/sync/protocol/sync.pb.h" | 23 #include "components/sync/protocol/sync.pb.h" |
| 24 | 24 |
| 25 class PrefService; | 25 class PrefService; |
| 26 class ProfileIOData; | |
| 27 | 26 |
| 28 namespace user_prefs { | 27 namespace user_prefs { |
| 29 class PrefRegistrySyncable; | 28 class PrefRegistrySyncable; |
| 30 } | 29 } |
| 31 | 30 |
| 32 namespace syncer { | 31 namespace syncer { |
| 33 | 32 |
| 34 class SyncPrefObserver { | 33 class SyncPrefObserver { |
| 35 public: | 34 public: |
| 36 // Called whenever the pref that controls whether sync is managed | 35 // Called whenever the pref that controls whether sync is managed |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // etc. | 215 // etc. |
| 217 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap; | 216 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap; |
| 218 PrefGroupsMap pref_groups_; | 217 PrefGroupsMap pref_groups_; |
| 219 | 218 |
| 220 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 219 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
| 221 }; | 220 }; |
| 222 | 221 |
| 223 } // namespace syncer | 222 } // namespace syncer |
| 224 | 223 |
| 225 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ | 224 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
| OLD | NEW |