summaryrefslogtreecommitdiffstats
path: root/sync/protocol
diff options
context:
space:
mode:
authorstanisc <stanisc@chromium.org>2015-11-10 17:12:00 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-11 01:12:42 +0000
commit87bc966eb34b274c2bcbd24d81ae65f5044afa6f (patch)
treef3541b449d69ca187f2a6fee5e7d330b2ed426f6 /sync/protocol
parente5603b01c209c01707a158ffbf7656be2f4f399d (diff)
downloadchromium_src-87bc966eb34b274c2bcbd24d81ae65f5044afa6f.zip
chromium_src-87bc966eb34b274c2bcbd24d81ae65f5044afa6f.tar.gz
chromium_src-87bc966eb34b274c2bcbd24d81ae65f5044afa6f.tar.bz2
Change EntityData and EntityMetadata according to the design doc.
BUG=553638 Review URL: https://codereview.chromium.org/1430343002 Cr-Commit-Position: refs/heads/master@{#358993}
Diffstat (limited to 'sync/protocol')
-rw-r--r--sync/protocol/entity_metadata.proto15
1 files changed, 5 insertions, 10 deletions
diff --git a/sync/protocol/entity_metadata.proto b/sync/protocol/entity_metadata.proto
index db655f6..4b02cf6 100644
--- a/sync/protocol/entity_metadata.proto
+++ b/sync/protocol/entity_metadata.proto
@@ -14,7 +14,7 @@ message EntityMetadata {
// A hash based on the client tag and model type.
// Used for various map lookups. Should always be available.
// Sent to the server as SyncEntity::client_defined_unique_tag.
- optional string client_id = 1;
+ optional string client_tag_hash = 1;
// The entity's server-assigned ID.
//
@@ -48,13 +48,8 @@ message EntityMetadata {
optional int64 creation_time = 7;
optional int64 modification_time = 8;
- // A non-unique name associated with this entity.
- //
- // It is sometimes used for debugging. It gets saved to and restored from
- // the sync server.
- //
- // Its value is often related to the item's unhashed client tag, though this
- // is not guaranteed and should not be relied on. May be hidden when
- // encryption is enabled.
- optional string non_unique_name = 9;
+ // A hash of the current entity specifics value. Used to detect whether
+ // entity's specifics value has changed without having to keep specifics in
+ // memory.
+ optional string specifics_hash = 9;
}