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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 // Called when configuration of the Nigori node has completed as | 464 // Called when configuration of the Nigori node has completed as |
465 // part of the initialization process. | 465 // part of the initialization process. |
466 void HandleNigoriConfigurationCompletedOnFrontendLoop( | 466 void HandleNigoriConfigurationCompletedOnFrontendLoop( |
467 syncer::ModelTypeSet failed_configuration_types); | 467 syncer::ModelTypeSet failed_configuration_types); |
468 | 468 |
469 // syncer::SyncNotifierObserver-like functions. | 469 // syncer::SyncNotifierObserver-like functions. |
470 void HandleNotificationsEnabledOnFrontendLoop(); | 470 void HandleNotificationsEnabledOnFrontendLoop(); |
471 void HandleNotificationsDisabledOnFrontendLoop( | 471 void HandleNotificationsDisabledOnFrontendLoop( |
472 syncer::NotificationsDisabledReason reason); | 472 syncer::NotificationsDisabledReason reason); |
473 void HandleIncomingNotificationOnFrontendLoop( | 473 void HandleIncomingNotificationOnFrontendLoop( |
474 const syncer::ObjectIdPayloadMap& id_payloads, | 474 const syncer::ObjectIdStateMap& id_state_map, |
475 syncer::IncomingNotificationSource source); | 475 syncer::IncomingNotificationSource source); |
476 | 476 |
477 // Handles stopping the core's SyncManager, accounting for whether | 477 // Handles stopping the core's SyncManager, accounting for whether |
478 // initialization is done yet. | 478 // initialization is done yet. |
479 void StopSyncManagerForShutdown(const base::Closure& closure); | 479 void StopSyncManagerForShutdown(const base::Closure& closure); |
480 | 480 |
481 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; | 481 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; |
482 | 482 |
483 // A thread where all the sync operations happen. | 483 // A thread where all the sync operations happen. |
484 base::Thread sync_thread_; | 484 base::Thread sync_thread_; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // it via OnBackendInitialized in the final state of | 530 // it via OnBackendInitialized in the final state of |
531 // HandleInitializationCompletedOnFrontendLoop. | 531 // HandleInitializationCompletedOnFrontendLoop. |
532 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 532 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
533 | 533 |
534 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 534 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
535 }; | 535 }; |
536 | 536 |
537 } // namespace browser_sync | 537 } // namespace browser_sync |
538 | 538 |
539 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 539 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |