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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 // part of the initialization process. | 466 // part of the initialization process. |
467 void HandleNigoriConfigurationCompletedOnFrontendLoop( | 467 void HandleNigoriConfigurationCompletedOnFrontendLoop( |
468 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 468 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
469 syncer::ModelTypeSet failed_configuration_types); | 469 syncer::ModelTypeSet failed_configuration_types); |
470 | 470 |
471 // syncer::SyncNotifierObserver-like functions. | 471 // syncer::SyncNotifierObserver-like functions. |
472 void HandleNotificationsEnabledOnFrontendLoop(); | 472 void HandleNotificationsEnabledOnFrontendLoop(); |
473 void HandleNotificationsDisabledOnFrontendLoop( | 473 void HandleNotificationsDisabledOnFrontendLoop( |
474 syncer::NotificationsDisabledReason reason); | 474 syncer::NotificationsDisabledReason reason); |
475 void HandleIncomingNotificationOnFrontendLoop( | 475 void HandleIncomingNotificationOnFrontendLoop( |
476 const syncer::ObjectIdPayloadMap& id_payloads, | 476 const syncer::ObjectIdStateMap& id_state_map, |
477 syncer::IncomingNotificationSource source); | 477 syncer::IncomingNotificationSource source); |
478 | 478 |
479 // Must be called on |frontend_loop_|. |done_callback| is called on | 479 // Must be called on |frontend_loop_|. |done_callback| is called on |
480 // |frontend_loop_|. | 480 // |frontend_loop_|. |
481 void RefreshNigori(const base::Closure& done_callback); | 481 void RefreshNigori(const base::Closure& done_callback); |
482 | 482 |
483 // Handles stopping the core's SyncManager, accounting for whether | 483 // Handles stopping the core's SyncManager, accounting for whether |
484 // initialization is done yet. | 484 // initialization is done yet. |
485 void StopSyncManagerForShutdown(const base::Closure& closure); | 485 void StopSyncManagerForShutdown(const base::Closure& closure); |
486 | 486 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 530 |
531 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 531 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
532 syncer::sessions::SyncSessionSnapshot last_snapshot_; | 532 syncer::sessions::SyncSessionSnapshot last_snapshot_; |
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 |