diff options
Diffstat (limited to 'chrome/browser/sync/glue/sync_backend_host.h')
-rw-r--r-- | chrome/browser/sync/glue/sync_backend_host.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h index a91d877..41a388a 100644 --- a/chrome/browser/sync/glue/sync_backend_host.h +++ b/chrome/browser/sync/glue/sync_backend_host.h @@ -58,6 +58,10 @@ class SyncFrontend { // credentials to be provided. See SyncBackendHost::Authenticate for details. virtual void OnAuthError() = 0; + // We are no longer permitted to communicate with the server. Sync should + // be disabled and state cleaned up at once. + virtual void OnStopSyncingPermanently() = 0; + protected: // Don't delete through SyncFrontend interface. virtual ~SyncFrontend() { @@ -230,6 +234,7 @@ class SyncBackendHost : public browser_sync::ModelSafeWorkerRegistrar { virtual void OnPassphraseAccepted(); virtual void OnPaused(); virtual void OnResumed(); + virtual void OnStopSyncingPermanently(); struct DoInitializeOptions { DoInitializeOptions( @@ -374,6 +379,8 @@ class SyncBackendHost : public browser_sync::ModelSafeWorkerRegistrar { void HandleSyncCycleCompletedOnFrontendLoop( sessions::SyncSessionSnapshot* snapshot); + void HandleStopSyncingPermanentlyOnFrontendLoop(); + // Called from Core::OnInitializationComplete to handle updating // frontend thread components. void HandleInitalizationCompletedOnFrontendLoop(); |