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_SYNC_SYNC_PREFS_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "chrome/browser/prefs/pref_member.h" | 15 #include "chrome/browser/prefs/pref_member.h" |
16 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h" | 16 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h" |
17 #include "chrome/browser/sync/syncable/model_type.h" | |
18 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
| 18 #include "sync/syncable/model_type.h" |
19 | 19 |
20 class PrefService; | 20 class PrefService; |
21 | 21 |
22 namespace browser_sync { | 22 namespace browser_sync { |
23 | 23 |
24 class SyncPrefObserver { | 24 class SyncPrefObserver { |
25 public: | 25 public: |
26 // Called whenever the pref that controls whether sync is managed | 26 // Called whenever the pref that controls whether sync is managed |
27 // changes. | 27 // changes. |
28 virtual void OnSyncManagedPrefChange(bool is_sync_managed) = 0; | 28 virtual void OnSyncManagedPrefChange(bool is_sync_managed) = 0; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // etc. | 152 // etc. |
153 typedef std::map<syncable::ModelType, syncable::ModelTypeSet> PrefGroupsMap; | 153 typedef std::map<syncable::ModelType, syncable::ModelTypeSet> PrefGroupsMap; |
154 PrefGroupsMap pref_groups_; | 154 PrefGroupsMap pref_groups_; |
155 | 155 |
156 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 156 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
157 }; | 157 }; |
158 | 158 |
159 } // namespace browser_sync | 159 } // namespace browser_sync |
160 | 160 |
161 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 161 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
OLD | NEW |