| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 462 |
| 463 // Called when configuration of the Nigori node has completed as | 463 // Called when configuration of the Nigori node has completed as |
| 464 // part of the initialization process. | 464 // part of the initialization process. |
| 465 void HandleNigoriConfigurationCompletedOnFrontendLoop( | 465 void HandleNigoriConfigurationCompletedOnFrontendLoop( |
| 466 syncer::ModelTypeSet failed_configuration_types); | 466 syncer::ModelTypeSet failed_configuration_types); |
| 467 | 467 |
| 468 // syncer::InvalidationHandler-like functions. | 468 // syncer::InvalidationHandler-like functions. |
| 469 void HandleInvalidatorStateChangeOnFrontendLoop( | 469 void HandleInvalidatorStateChangeOnFrontendLoop( |
| 470 syncer::InvalidatorState state); | 470 syncer::InvalidatorState state); |
| 471 void HandleIncomingInvalidationOnFrontendLoop( | 471 void HandleIncomingInvalidationOnFrontendLoop( |
| 472 const syncer::ObjectIdStateMap& id_state_map, | 472 const syncer::ObjectIdInvalidationMap& invalidation_map, |
| 473 syncer::IncomingInvalidationSource source); | 473 syncer::IncomingInvalidationSource source); |
| 474 | 474 |
| 475 // Handles stopping the core's SyncManager, accounting for whether | 475 // Handles stopping the core's SyncManager, accounting for whether |
| 476 // initialization is done yet. | 476 // initialization is done yet. |
| 477 void StopSyncManagerForShutdown(const base::Closure& closure); | 477 void StopSyncManagerForShutdown(const base::Closure& closure); |
| 478 | 478 |
| 479 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; | 479 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; |
| 480 | 480 |
| 481 // A thread where all the sync operations happen. | 481 // A thread where all the sync operations happen. |
| 482 base::Thread sync_thread_; | 482 base::Thread sync_thread_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 // it via OnBackendInitialized in the final state of | 534 // it via OnBackendInitialized in the final state of |
| 535 // HandleInitializationCompletedOnFrontendLoop. | 535 // HandleInitializationCompletedOnFrontendLoop. |
| 536 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 536 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
| 537 | 537 |
| 538 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 538 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 539 }; | 539 }; |
| 540 | 540 |
| 541 } // namespace browser_sync | 541 } // namespace browser_sync |
| 542 | 542 |
| 543 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 543 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |