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

Unified Diff: sync/internal_api/attachments/proto/attachment_store.proto

Issue 690723004: Add per attachment metadata records. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/internal_api/attachments/proto/attachment_store.proto
diff --git a/sync/internal_api/attachments/proto/attachment_store.proto b/sync/internal_api/attachments/proto/attachment_store.proto
index 533332d5d011417ff241c0e86d97803319c4fb30..b233c8ac9ebf967069a37179aa44cc7f00165eb6 100644
--- a/sync/internal_api/attachments/proto/attachment_store.proto
+++ b/sync/internal_api/attachments/proto/attachment_store.proto
@@ -16,3 +16,12 @@ message AttachmentStoreMetadata {
// older code that doesn't understand it.
optional int32 schema_version = 1;
}
+
+// Metadata for attachment in attachemnt store. Storing metadata in separate
+// record from actual data allows to enumerate attachments in the store without
maniscalco 2014/10/30 16:40:20 allows to -> allows us to (and again later in this
pavely 2014/10/30 18:28:36 Done.
+// incurring cost to read actual data. It also allows to update attachment
+// metadata independent of the data.
+message AttachmentRecordMetadata {
maniscalco 2014/10/30 16:40:20 I remember that we already have a proto called Att
pavely 2014/10/30 18:28:36 This proto file already declares attachment_store_
maniscalco 2014/10/30 18:33:09 SGTM
+ // Size of attachment data. Useful for attachment store space management.
+ optional int64 attachment_size = 2;
maniscalco 2014/10/30 16:40:20 2 not 1?
pavely 2014/10/30 18:28:36 Sorry, I started with CRC, but reverted it.
+}

Powered by Google App Engine
This is Rietveld 408576698