OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_THEME_CHANGE_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_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" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual void ApplyChangesFromSyncModel( | 40 virtual void ApplyChangesFromSyncModel( |
41 const sync_api::BaseTransaction* trans, | 41 const sync_api::BaseTransaction* trans, |
42 const sync_api::ImmutableChangeRecordList& changes) OVERRIDE; | 42 const sync_api::ImmutableChangeRecordList& changes) OVERRIDE; |
43 | 43 |
44 protected: | 44 protected: |
45 // ChangeProcessor implementation. | 45 // ChangeProcessor implementation. |
46 virtual void StartImpl(Profile* profile) OVERRIDE; | 46 virtual void StartImpl(Profile* profile) OVERRIDE; |
47 virtual void StopImpl() OVERRIDE; | 47 virtual void StopImpl() OVERRIDE; |
48 | 48 |
49 private: | 49 private: |
| 50 friend class ScopedStopObserving<ThemeChangeProcessor>; |
50 void StartObserving(); | 51 void StartObserving(); |
51 void StopObserving(); | 52 void StopObserving(); |
52 | 53 |
53 content::NotificationRegistrar notification_registrar_; | 54 content::NotificationRegistrar notification_registrar_; |
54 // Profile associated with the ThemeService. Non-NULL iff |running()| is | 55 // Profile associated with the ThemeService. Non-NULL iff |running()| is |
55 // true. | 56 // true. |
56 Profile* profile_; | 57 Profile* profile_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(ThemeChangeProcessor); | 59 DISALLOW_COPY_AND_ASSIGN(ThemeChangeProcessor); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace browser_sync | 62 } // namespace browser_sync |
62 | 63 |
63 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_ | 64 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_ |
OLD | NEW |