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

Unified Diff: sync/engine/sync_scheduler.h

Issue 387983004: sync: Support non-blocking initial sync in proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix comment Created 6 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/engine/sync_scheduler.h
diff --git a/sync/engine/sync_scheduler.h b/sync/engine/sync_scheduler.h
index b5120423359cf01c634e1765c632c6a8b67b5613..e490f940d999681a9a42cdc752c94ee964a825da 100644
--- a/sync/engine/sync_scheduler.h
+++ b/sync/engine/sync_scheduler.h
@@ -119,6 +119,14 @@ class SYNC_EXPORT_PRIVATE SyncScheduler
scoped_ptr<InvalidationInterface> invalidation,
const tracked_objects::Location& nudge_location) = 0;
+ // Requests a non-blocking initial sync request for the specified type.
+ //
+ // Many types can only complete initial sync while the scheduler is in
+ // configure mode, but a few of them are able to perform their initial sync
+ // while the scheduler is in normal mode. This non-blocking initial sync
+ // can be requested through this function.
+ virtual void ScheduleInitialSyncNudge(syncer::ModelType model_type) = 0;
+
// Change status of notifications in the SyncSessionContext.
virtual void SetNotificationsEnabled(bool notifications_enabled) = 0;

Powered by Google App Engine
This is Rietveld 408576698