| 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_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 public sync_api::SyncManager::Observer { | 255 public sync_api::SyncManager::Observer { |
| 256 public: | 256 public: |
| 257 Core(const std::string& name, SyncBackendHost* backend); | 257 Core(const std::string& name, SyncBackendHost* backend); |
| 258 | 258 |
| 259 // SyncManager::Observer implementation. The Core just acts like an air | 259 // SyncManager::Observer implementation. The Core just acts like an air |
| 260 // traffic controller here, forwarding incoming messages to appropriate | 260 // traffic controller here, forwarding incoming messages to appropriate |
| 261 // landing threads. | 261 // landing threads. |
| 262 virtual void OnChangesApplied( | 262 virtual void OnChangesApplied( |
| 263 syncable::ModelType model_type, | 263 syncable::ModelType model_type, |
| 264 const sync_api::BaseTransaction* trans, | 264 const sync_api::BaseTransaction* trans, |
| 265 const sync_api::SyncManager::ChangeRecord* changes, | 265 const sync_api::ImmutableChangeRecordList& changes) OVERRIDE; |
| 266 int change_count) OVERRIDE; | |
| 267 virtual void OnChangesComplete( | 266 virtual void OnChangesComplete( |
| 268 syncable::ModelType model_type) OVERRIDE; | 267 syncable::ModelType model_type) OVERRIDE; |
| 269 virtual void OnSyncCycleCompleted( | 268 virtual void OnSyncCycleCompleted( |
| 270 const sessions::SyncSessionSnapshot* snapshot) OVERRIDE; | 269 const sessions::SyncSessionSnapshot* snapshot) OVERRIDE; |
| 271 virtual void OnInitializationComplete( | 270 virtual void OnInitializationComplete( |
| 272 const WeakHandle<JsBackend>& js_backend, | 271 const WeakHandle<JsBackend>& js_backend, |
| 273 bool success) OVERRIDE; | 272 bool success) OVERRIDE; |
| 274 virtual void OnAuthError( | 273 virtual void OnAuthError( |
| 275 const GoogleServiceAuthError& auth_error) OVERRIDE; | 274 const GoogleServiceAuthError& auth_error) OVERRIDE; |
| 276 virtual void OnPassphraseRequired( | 275 virtual void OnPassphraseRequired( |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 546 |
| 548 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 547 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
| 549 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 548 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
| 550 | 549 |
| 551 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 550 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 552 }; | 551 }; |
| 553 | 552 |
| 554 } // namespace browser_sync | 553 } // namespace browser_sync |
| 555 | 554 |
| 556 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 555 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |