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

Unified Diff: sync/engine/syncer.h

Issue 25638003: sync: Implement per-type commit interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempt to fix win compile Created 7 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_directory_commit_contributor.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 132f6ef7b0cb0605458424f8d7773b0da0ed8fc2..d943e5f1206dbd4855988f4467a27936dd6f4c59 100644
--- a/sync/engine/syncer.h
+++ b/sync/engine/syncer.h
@@ -73,6 +73,14 @@ class SYNC_EXPORT_PRIVATE Syncer {
sessions::SyncSession* session,
base::Callback<void(sync_pb::ClientToServerMessage*)> build_fn);
+ // This function will commit batches of unsynced items to the server until the
+ // number of unsynced and ready to commit items reaches zero or an error is
+ // encountered. A request to exit early will be treated as an error and will
+ // abort any blocking operations.
+ SyncerError BuildAndPostCommits(
+ ModelTypeSet request_types,
+ sessions::SyncSession* session);
+
void HandleCycleBegin(sessions::SyncSession* session);
bool HandleCycleEnd(
sessions::SyncSession* session,
« no previous file with comments | « sync/engine/sync_directory_commit_contributor.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698