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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/write_node.cc ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Sync protocol for attachments. 5 // Sync protocol for attachments.
6 6
7 // Update proto_{value,enum}_conversions{.h,.cc,_unittest.cc} if you change any 7 // Update proto_{value,enum}_conversions{.h,.cc,_unittest.cc} if you change any
8 // fields in this file. 8 // fields in this file.
9 9
10 syntax = "proto2"; 10 syntax = "proto2";
11 11
12 option optimize_for = LITE_RUNTIME; 12 option optimize_for = LITE_RUNTIME;
13 option retain_unknown_fields = true; 13 option retain_unknown_fields = true;
14 14
15 package sync_pb; 15 package sync_pb;
16 16
17 // Identifies an attachment. 17 // Identifies an attachment.
18 message AttachmentIdProto { 18 message AttachmentIdProto {
19 // Uniquely identifies the attachment. Two attachments with the same unique_id 19 // Uniquely identifies the attachment. Two attachments with the same unique_id
20 // are considered equivalent. 20 // are considered equivalent.
21 optional string unique_id = 1; 21 optional string unique_id = 1;
22 } 22 }
23 23
24 // Metadata for a single attachment.
25 message AttachmentMetadataRecord {
26 optional AttachmentIdProto id = 1;
27 // Indicates we know this attachment exists on the server.
28 optional bool is_on_server = 2;
29 }
30
24 // A collection of attachment metadata. This proto is part of EntryKernel's "on 31 // A collection of attachment metadata. This proto is part of EntryKernel's "on
25 // disk" representation. Private to sync. 32 // disk" representation. Private to sync.
26 message AttachmentMetadata { 33 message AttachmentMetadata {
34 // One record per attachment.
35 repeated AttachmentMetadataRecord record = 1;
27 } 36 }
OLDNEW
« 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