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_GLUE_SESSION_CHANGE_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_CHANGE_PROCESSOR_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_CHANGE_PROCESSOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_CHANGE_PROCESSOR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/sync/glue/change_processor.h" | 10 #include "chrome/browser/sync/glue/change_processor.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const syncer::BaseTransaction* trans, | 50 const syncer::BaseTransaction* trans, |
51 int64 model_version, | 51 int64 model_version, |
52 const syncer::ImmutableChangeRecordList& changes) OVERRIDE; | 52 const syncer::ImmutableChangeRecordList& changes) OVERRIDE; |
53 | 53 |
54 protected: | 54 protected: |
55 // ChangeProcessor implementation. | 55 // ChangeProcessor implementation. |
56 virtual void StartImpl(Profile* profile) OVERRIDE; | 56 virtual void StartImpl(Profile* profile) OVERRIDE; |
57 | 57 |
58 private: | 58 private: |
59 friend class ScopedStopObserving<SessionChangeProcessor>; | 59 friend class ScopedStopObserving<SessionChangeProcessor>; |
| 60 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceSessionTest, CheckTabAssociation); |
60 | 61 |
61 void StartObserving(); | 62 void StartObserving(); |
62 void StopObserving(); | 63 void StopObserving(); |
63 | 64 |
64 SessionModelAssociator* session_model_associator_; | 65 SessionModelAssociator* session_model_associator_; |
65 content::NotificationRegistrar notification_registrar_; | 66 content::NotificationRegistrar notification_registrar_; |
66 | 67 |
67 // Profile being synced. Non-null if |running()| is true. | 68 // Profile being synced. Non-null if |running()| is true. |
68 Profile* profile_; | 69 Profile* profile_; |
69 | 70 |
70 // To bypass some checks/codepaths not applicable in tests. | 71 // To bypass some checks/codepaths not applicable in tests. |
71 bool setup_for_test_; | 72 bool setup_for_test_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(SessionChangeProcessor); | 74 DISALLOW_COPY_AND_ASSIGN(SessionChangeProcessor); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace browser_sync | 77 } // namespace browser_sync |
77 | 78 |
78 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_CHANGE_PROCESSOR_H_ | 79 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_CHANGE_PROCESSOR_H_ |
OLD | NEW |