Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: sync/internal_api/public/sync_manager.h

Issue 1253743003: [Sync] Update SyncBackendHost to forward ClearServerData to SyncManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clearserverdatacommand
Patch Set: Remove unused callback variable Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/sync_manager.h
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index 8d3c15e97bb925f2b1ba09663af6ed7ed41a6b61..da6069f9d026d79f7d093cc5beb11c9d94c6fccc 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -278,6 +278,8 @@ class SYNC_EXPORT SyncManager {
PassphraseTransitionClearDataOption clear_data_option;
};
+ typedef base::Callback<void(void)> ClearServerDataCallback;
+
SyncManager();
virtual ~SyncManager();
@@ -400,6 +402,13 @@ class SYNC_EXPORT SyncManager {
// Request that all current counter values be emitted as though they had just
// been updated. Useful for initializing new observers' state.
virtual void RequestEmitDebugInfo() = 0;
+
+ // Clears server data and invokes |callback| when complete.
+ //
+ // This is an asynchronous operation that requires interaction with the sync
+ // server. The operation will automatically be retried with backoff until it
+ // completes successfully or sync is shutdown.
+ virtual void ClearServerData(const ClearServerDataCallback& callback) = 0;
};
} // namespace syncer
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.cc ('k') | sync/internal_api/public/test/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698