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

Unified Diff: sync/protocol/attachments.proto

Issue 982883002: [Sync] Add size and crc32c to AttachmentId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix argument evaluation order bug. Created 5 years, 10 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
Index: sync/protocol/attachments.proto
diff --git a/sync/protocol/attachments.proto b/sync/protocol/attachments.proto
index e08e2b052ceb73293751e4ec11a75a5869224fb3..986e29fced4f6e87a4b9c2ea23970781a7a20dc3 100644
--- a/sync/protocol/attachments.proto
+++ b/sync/protocol/attachments.proto
@@ -19,6 +19,10 @@ message AttachmentIdProto {
// Uniquely identifies the attachment. Two attachments with the same unique_id
// are considered equivalent.
optional string unique_id = 1;
+ // Size of the attachment data in bytes.
+ optional uint64 size_bytes = 2;
+ // Crc32c of the attachment data.
+ optional uint32 crc32c = 3;
}
// Metadata for a single attachment.

Powered by Google App Engine
This is Rietveld 408576698