| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 void StartObserving(); | 52 void StartObserving(); |
| 53 void StopObserving(); | 53 void StopObserving(); |
| 54 | 54 |
| 55 // 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. |
| 56 PrefService* pref_service_; | 56 PrefService* pref_service_; |
| 57 | 57 |
| 58 // The two models should be associated according to this ModelAssociator. | 58 // The two models should be associated according to this ModelAssociator. |
| 59 PreferenceModelAssociator* model_associator_; | 59 PreferenceModelAssociator* model_associator_; |
| 60 | 60 |
| 61 // Whether we are currently processing a preference change notification. |
| 62 bool processing_pref_change_; |
| 63 |
| 61 DISALLOW_COPY_AND_ASSIGN(PreferenceChangeProcessor); | 64 DISALLOW_COPY_AND_ASSIGN(PreferenceChangeProcessor); |
| 62 }; | 65 }; |
| 63 | 66 |
| 64 } // namespace browser_sync | 67 } // namespace browser_sync |
| 65 | 68 |
| 66 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ | 69 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ |
| OLD | NEW |