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

Unified Diff: sync/engine/syncer.h

Issue 1251203002: [Sync] Add ClearServerData support to Sync Scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply CR feedback 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
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/syncer.h
diff --git a/sync/engine/syncer.h b/sync/engine/syncer.h
index e473bae86381349629d1028ee75c92fce8e898a9..7b77d07c1933c3d690f20880431a29cf779a694b 100644
--- a/sync/engine/syncer.h
+++ b/sync/engine/syncer.h
@@ -78,6 +78,11 @@ class SYNC_EXPORT_PRIVATE Syncer {
virtual bool PollSyncShare(ModelTypeSet request_types,
sessions::SyncSession* session);
+ // Posts a ClearServerData command.
+ // Returns: false if an error occurred and retries should backoff, true
+ // otherwise.
+ virtual bool PostClearServerData(sessions::SyncSession* session);
+
private:
friend class SyncerTest;
FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver);
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698