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

Unified Diff: sync/engine/syncer.h

Issue 93433006: sync: Introduce ModelTypeRegistry and helpers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renames and moves Created 6 years, 11 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 6154f9104477e52ac3a9fb389b27f6f26724a3ee..42cf6376279c4fca23cb7d67349c94d4916b2d14 100644
--- a/sync/engine/syncer.h
+++ b/sync/engine/syncer.h
@@ -22,6 +22,8 @@
namespace syncer {
class CancelationSignal;
+class CommitProcessor;
+class GetUpdatesProcessor;
// A Syncer provides a control interface for driving the sync cycle. These
// cycles consist of downloading updates, parsing the response (aka. process
@@ -67,10 +69,12 @@ class SYNC_EXPORT_PRIVATE Syncer {
sessions::SyncSession* session);
private:
- void ApplyUpdates(sessions::SyncSession* session);
+ void ApplyUpdates(sessions::SyncSession* session,
+ GetUpdatesProcessor* get_updates_processor);
bool DownloadAndApplyUpdates(
ModelTypeSet request_types,
sessions::SyncSession* session,
+ GetUpdatesProcessor* get_updates_processor,
base::Callback<void(sync_pb::ClientToServerMessage*)> build_fn);
// This function will commit batches of unsynced items to the server until the
@@ -79,7 +83,8 @@ class SYNC_EXPORT_PRIVATE Syncer {
// abort any blocking operations.
SyncerError BuildAndPostCommits(
ModelTypeSet request_types,
- sessions::SyncSession* session);
+ sessions::SyncSession* session,
+ CommitProcessor* committer_list);
void HandleCycleBegin(sessions::SyncSession* session);
bool HandleCycleEnd(

Powered by Google App Engine
This is Rietveld 408576698