| 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 // frontend UI components. | 459 // frontend UI components. |
| 460 void HandleConnectionStatusChangeOnFrontendLoop( | 460 void HandleConnectionStatusChangeOnFrontendLoop( |
| 461 syncer::ConnectionStatus status); | 461 syncer::ConnectionStatus status); |
| 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 HandleNotificationsEnabledOnFrontendLoop(); | 469 void HandleInvalidatorStateChangeOnFrontendLoop( |
| 470 void HandleNotificationsDisabledOnFrontendLoop( | 470 syncer::InvalidatorState state); |
| 471 syncer::NotificationsDisabledReason reason); | 471 void HandleIncomingInvalidationOnFrontendLoop( |
| 472 void HandleIncomingNotificationOnFrontendLoop( | |
| 473 const syncer::ObjectIdStateMap& id_state_map, | 472 const syncer::ObjectIdStateMap& id_state_map, |
| 474 syncer::IncomingNotificationSource source); | 473 syncer::IncomingInvalidationSource source); |
| 475 | 474 |
| 476 // Handles stopping the core's SyncManager, accounting for whether | 475 // Handles stopping the core's SyncManager, accounting for whether |
| 477 // initialization is done yet. | 476 // initialization is done yet. |
| 478 void StopSyncManagerForShutdown(const base::Closure& closure); | 477 void StopSyncManagerForShutdown(const base::Closure& closure); |
| 479 | 478 |
| 480 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; | 479 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; |
| 481 | 480 |
| 482 // A thread where all the sync operations happen. | 481 // A thread where all the sync operations happen. |
| 483 base::Thread sync_thread_; | 482 base::Thread sync_thread_; |
| 484 | 483 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // it via OnBackendInitialized in the final state of | 534 // it via OnBackendInitialized in the final state of |
| 536 // HandleInitializationCompletedOnFrontendLoop. | 535 // HandleInitializationCompletedOnFrontendLoop. |
| 537 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 536 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
| 538 | 537 |
| 539 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 538 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 540 }; | 539 }; |
| 541 | 540 |
| 542 } // namespace browser_sync | 541 } // namespace browser_sync |
| 543 | 542 |
| 544 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 543 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |