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

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: Fix memory leak in tests 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
« no previous file with comments | « sync/engine/sync_scheduler_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 225b4e3c8f04bb1f065f8ee665fa8a2f705ee3e9..51c66aaa33cc5c647d5c293ad9504eeb87a6e036 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
@@ -69,10 +71,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
@@ -81,7 +85,8 @@ class SYNC_EXPORT_PRIVATE Syncer {
// abort any blocking operations.
SyncerError BuildAndPostCommits(
ModelTypeSet request_types,
- sessions::SyncSession* session);
+ sessions::SyncSession* session,
+ CommitProcessor* commit_processor);
void HandleCycleBegin(sessions::SyncSession* session);
bool HandleCycleEnd(
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698