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

Unified Diff: sync/engine/sync_scheduler_impl.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.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler_impl.h
diff --git a/sync/engine/sync_scheduler_impl.h b/sync/engine/sync_scheduler_impl.h
index b7d8d0beef277cea87bd14162fa60ff777c14c40..0304da94958ad65b1ebb7bfb0530a468a9f0719a 100644
--- a/sync/engine/sync_scheduler_impl.h
+++ b/sync/engine/sync_scheduler_impl.h
@@ -53,6 +53,7 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
void Start(Mode mode, base::Time last_poll_time) override;
void ScheduleConfiguration(const ConfigurationParams& params) override;
+ void ScheduleClearServerData(const ClearParams& params) override;
void Stop() override;
void ScheduleLocalNudge(
ModelTypeSet types,
@@ -151,6 +152,8 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
// Invoke the syncer to perform a configuration job.
void DoConfigurationSyncSessionJob(JobPriority priority);
+ void DoClearServerDataSyncSessionJob(JobPriority priority);
+
// Helper function for Do{Nudge,Configuration,Poll}SyncSessionJob.
void HandleSuccess();
@@ -272,6 +275,8 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
// that (mode_ != CONFIGURATION_MODE) \implies !pending_configure_params_.
scoped_ptr<ConfigurationParams> pending_configure_params_;
+ scoped_ptr<ClearParams> pending_clear_params_;
+
// If we have a nudge pending to run soon, it will be listed here.
base::TimeTicks scheduled_nudge_time_;
« no previous file with comments | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698