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

Unified Diff: sync/engine/syncer.h

Issue 10917234: sync: make scheduling logic and job ownership more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review Created 8 years, 2 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/syncer.h
diff --git a/sync/engine/syncer.h b/sync/engine/syncer.h
index 3c4c68ecaef9d94f867102c5f5cc43d283f3bf49..d95021f0d1da6312b3912ffa6586ead439208772 100644
--- a/sync/engine/syncer.h
+++ b/sync/engine/syncer.h
@@ -59,7 +59,9 @@ class Syncer {
void RequestEarlyExit();
// Runs a sync cycle from |first_step| to |last_step|.
- virtual void SyncShare(sessions::SyncSession* session,
+ // Returns true if the cycle completed with |last_step|, and false
+ // if it terminated early due to error / exit requested.
+ virtual bool SyncShare(sessions::SyncSession* session,
SyncerStep first_step,
SyncerStep last_step);

Powered by Google App Engine
This is Rietveld 408576698