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

Unified Diff: sync/protocol/attachments.proto

Issue 247983002: Keep track of which attachments are referenced by which sync entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rework tests and move AttachmentIdProto creation to avoid violating DEPS. Created 6 years, 8 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
« no previous file with comments | « sync/internal_api/write_node.cc ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/attachments.proto
diff --git a/sync/protocol/attachments.proto b/sync/protocol/attachments.proto
index 50815d3d044829023d4dcb72930e4b285dfffba6..e08e2b052ceb73293751e4ec11a75a5869224fb3 100644
--- a/sync/protocol/attachments.proto
+++ b/sync/protocol/attachments.proto
@@ -21,7 +21,16 @@ message AttachmentIdProto {
optional string unique_id = 1;
}
+// Metadata for a single attachment.
+message AttachmentMetadataRecord {
+ optional AttachmentIdProto id = 1;
+ // Indicates we know this attachment exists on the server.
+ optional bool is_on_server = 2;
+}
+
// A collection of attachment metadata. This proto is part of EntryKernel's "on
// disk" representation. Private to sync.
message AttachmentMetadata {
+ // One record per attachment.
+ repeated AttachmentMetadataRecord record = 1;
}
« no previous file with comments | « sync/internal_api/write_node.cc ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698