diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-04 21:10:21 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-04 21:10:21 +0000 |
commit | d7f9c93561d24d5f46b0b54a025a82224dc6b778 (patch) | |
tree | 6c1cd6e387b83f7541a1535d373321131e78abc2 /sync/internal_api/public | |
parent | b64e521a4734417c33bd6758296c8eb7c3a8fe3f (diff) | |
download | chromium_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.h | 3 |
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() {} |