| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/sessions/session_backend.h" | 10 #include "chrome/browser/sessions/session_backend.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 const sync_api::SyncManager::ChangeRecord* changes, | 50 const sync_api::SyncManager::ChangeRecord* changes, |
| 51 int change_count); | 51 int change_count); |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 // ChangeProcessor implementation. | 54 // ChangeProcessor implementation. |
| 55 virtual void StartImpl(Profile* profile); | 55 virtual void StartImpl(Profile* profile); |
| 56 virtual void StopImpl(); | 56 virtual void StopImpl(); |
| 57 private: | 57 private: |
| 58 void StartObserving(); | 58 void StartObserving(); |
| 59 void StopObserving(); | 59 void StopObserving(); |
| 60 void UpdateModel(const sync_api::BaseTransaction* trans, | |
| 61 const sync_api::SyncManager::ChangeRecord& change, bool associate); | |
| 62 SessionModelAssociator* session_model_associator_; | 60 SessionModelAssociator* session_model_associator_; |
| 63 NotificationRegistrar notification_registrar_; | 61 NotificationRegistrar notification_registrar_; |
| 64 | 62 |
| 65 // Owner of the SessionService. Non-NULL iff |running()| is true. | 63 // Owner of the SessionService. Non-NULL iff |running()| is true. |
| 66 Profile* profile_; | 64 Profile* profile_; |
| 67 | 65 |
| 68 DISALLOW_COPY_AND_ASSIGN(SessionChangeProcessor); | 66 DISALLOW_COPY_AND_ASSIGN(SessionChangeProcessor); |
| 69 }; | 67 }; |
| 70 | 68 |
| 71 } // namespace browser_sync | 69 } // namespace browser_sync |
| 72 | 70 |
| 73 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_CHANGE_PROCESSOR_H_ | 71 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_CHANGE_PROCESSOR_H_ |
| 74 | |
| OLD | NEW |