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

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: Fix compile 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
« no previous file with comments | « sync/engine/non_blocking_type_processor_core.cc ('k') | sync/internal_api/public/write_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/update_handler.h
diff --git a/sync/engine/update_handler.h b/sync/engine/update_handler.h
index eb1ee4de6381968d8a75a99befc464d462d97d97..29bdbc9deea2093f2e4ca6fd53d6bec03e3b28a4 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
@@ -46,6 +51,7 @@ class SYNC_EXPORT_PRIVATE UpdateHandler {
// this type.
virtual void ProcessGetUpdatesResponse(
const sync_pb::DataTypeProgressMarker& progress_marker,
+ const sync_pb::DataTypeContext& mutated_context,
const SyncEntityList& applicable_updates,
sessions::StatusController* status) = 0;
« no previous file with comments | « sync/engine/non_blocking_type_processor_core.cc ('k') | sync/internal_api/public/write_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698