summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/engine/syncapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/engine/syncapi.h')
-rw-r--r--chrome/browser/sync/engine/syncapi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/sync/engine/syncapi.h b/chrome/browser/sync/engine/syncapi.h
index e4e8510..c49fc67 100644
--- a/chrome/browser/sync/engine/syncapi.h
+++ b/chrome/browser/sync/engine/syncapi.h
@@ -700,6 +700,11 @@ class SyncManager {
// global stop syncing operation has wiped the store.
virtual void OnStopSyncingPermanently() = 0;
+ // After a request to clear server data, these callbacks are invoked to
+ // indicate success or failure
+ virtual void OnClearServerDataSucceeded() = 0;
+ virtual void OnClearServerDataFailed() = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(Observer);
};
@@ -814,6 +819,9 @@ class SyncManager {
// to run at the next available opportunity.
void RequestNudge();
+ // Request a clearing of all data on the server
+ void RequestClearServerData();
+
// Adds a listener to be notified of sync events.
// NOTE: It is OK (in fact, it's probably a good idea) to call this before
// having received OnInitializationCompleted.