summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-04 21:10:21 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-04 21:10:21 +0000
commitd7f9c93561d24d5f46b0b54a025a82224dc6b778 (patch)
tree6c1cd6e387b83f7541a1535d373321131e78abc2 /sync/internal_api/public
parentb64e521a4734417c33bd6758296c8eb7c3a8fe3f (diff)
downloadchromium_src-d7f9c93561d24d5f46b0b54a025a82224dc6b778.zip
chromium_src-d7f9c93561d24d5f46b0b54a025a82224dc6b778.tar.gz
chromium_src-d7f9c93561d24d5f46b0b54a025a82224dc6b778.tar.bz2
[Sync] Add plumbing of context from client to server
The datatype context is now written into the directory and plumbed up to the server on every GetUpdates or Commit request. GetUpdatesResponses also now overwrite the context if the version returned is the same or higher. BUG=345420 Review URL: https://codereview.chromium.org/215973007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public')
-rw-r--r--sync/internal_api/public/write_transaction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sync/internal_api/public/write_transaction.h b/sync/internal_api/public/write_transaction.h
index 9008b4f..8e797be 100644
--- a/sync/internal_api/public/write_transaction.h
+++ b/sync/internal_api/public/write_transaction.h
@@ -43,6 +43,9 @@ class SYNC_EXPORT WriteTransaction : public BaseTransaction {
virtual syncable::BaseTransaction* GetWrappedTrans() const OVERRIDE;
syncable::WriteTransaction* GetWrappedWriteTrans() { return transaction_; }
+ // Set's a |type|'s local context. Does not affect any individual entities.
+ void SetDataTypeContext(ModelType type, const std::string& context);
+
protected:
WriteTransaction() {}