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; |