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

Unified Diff: sync/engine/update_handler.h

Issue 215973007: [Sync] Add plumbing of context from client to server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/update_handler.h
diff --git a/sync/engine/update_handler.h b/sync/engine/update_handler.h
index eb1ee4de6381968d8a75a99befc464d462d97d97..ecc3e9884538b7a629a24bbbf0e1b957bbfa33ba 100644
--- a/sync/engine/update_handler.h
+++ b/sync/engine/update_handler.h
@@ -10,6 +10,7 @@
#include "sync/base/sync_export.h"
namespace sync_pb {
+class DataTypeContext;
class DataTypeProgressMarker;
class SyncEntity;
}
@@ -35,6 +36,10 @@ class SYNC_EXPORT_PRIVATE UpdateHandler {
virtual void GetDownloadProgress(
sync_pb::DataTypeProgressMarker* progress_marker) const = 0;
+ // Fills |context| with the per-client datatype context, if one exists. Clears
+ // |context| otherwise.
+ virtual void GetDataTypeContext(sync_pb::DataTypeContext* context) const = 0;
+
// Processes the contents of a GetUpdates response message.
//
// Should be invoked with the progress marker and set of SyncEntities from a
@@ -49,6 +54,10 @@ class SYNC_EXPORT_PRIVATE UpdateHandler {
const SyncEntityList& applicable_updates,
sessions::StatusController* status) = 0;
+ // Processes a server mutation of a datatype context.
+ virtual void ProcessDataTypeContextMutation(
+ const sync_pb::DataTypeContext& mutated_context) = 0;
+
// Called at the end of a non-configure GetUpdates loop to apply any unapplied
// updates.
virtual void ApplyUpdates(sessions::StatusController* status) = 0;

Powered by Google App Engine
This is Rietveld 408576698