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

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: eof 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
« no previous file with comments | « sync/engine/sync_session_job_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 ee97b08c438e87cbdff8712f3010ef5375f4a571..80dfb517a2ec8705af15df8e63fef0055a6b0ecf 100644
--- a/sync/engine/syncer.h
+++ b/sync/engine/syncer.h
@@ -57,7 +57,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);
« no previous file with comments | « sync/engine/sync_session_job_unittest.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698