OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "chrome/browser/prefs/pref_change_registrar.h" |
11 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/sync/engine/syncapi.h" | 13 #include "chrome/browser/sync/engine/syncapi.h" |
13 #include "chrome/browser/sync/glue/change_processor.h" | 14 #include "chrome/browser/sync/glue/change_processor.h" |
14 #include "chrome/browser/sync/glue/sync_backend_host.h" | 15 #include "chrome/browser/sync/glue/sync_backend_host.h" |
15 #include "chrome/common/notification_observer.h" | 16 #include "chrome/common/notification_observer.h" |
16 | 17 |
17 namespace browser_sync { | 18 namespace browser_sync { |
18 | 19 |
19 class PreferenceModelAssociator; | 20 class PreferenceModelAssociator; |
20 class UnrecoverableErrorHandler; | 21 class UnrecoverableErrorHandler; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 54 |
54 // The model we are processing changes from. Non-NULL when |running_| is true. | 55 // The model we are processing changes from. Non-NULL when |running_| is true. |
55 PrefService* pref_service_; | 56 PrefService* pref_service_; |
56 | 57 |
57 // The two models should be associated according to this ModelAssociator. | 58 // The two models should be associated according to this ModelAssociator. |
58 PreferenceModelAssociator* model_associator_; | 59 PreferenceModelAssociator* model_associator_; |
59 | 60 |
60 // Whether we are currently processing a preference change notification. | 61 // Whether we are currently processing a preference change notification. |
61 bool processing_pref_change_; | 62 bool processing_pref_change_; |
62 | 63 |
| 64 PrefChangeRegistrar registrar_; |
| 65 |
63 DISALLOW_COPY_AND_ASSIGN(PreferenceChangeProcessor); | 66 DISALLOW_COPY_AND_ASSIGN(PreferenceChangeProcessor); |
64 }; | 67 }; |
65 | 68 |
66 } // namespace browser_sync | 69 } // namespace browser_sync |
67 | 70 |
68 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ | 71 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ |
OLD | NEW |