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

Unified Diff: sync/internal_api/public/base/attachment_id_proto.h

Issue 393083004: Update Commit and GetUpdatesResponse messages to include attachment ids. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update SyncManagerImpl to detect attachment metadata changes. Created 6 years, 5 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/engine/syncer_util.cc ('k') | sync/internal_api/public/base/attachment_id_proto.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/base/attachment_id_proto.h
diff --git a/sync/internal_api/public/base/attachment_id_proto.h b/sync/internal_api/public/base/attachment_id_proto.h
index 3332d8110366a88ee43c3612c180ca6e46be4cc2..a47f46e2e43c1c211021401e27b527d41438fffd 100644
--- a/sync/internal_api/public/base/attachment_id_proto.h
+++ b/sync/internal_api/public/base/attachment_id_proto.h
@@ -15,6 +15,14 @@ namespace syncer {
// Creates a unique AttachmentIdProto.
SYNC_EXPORT_PRIVATE sync_pb::AttachmentIdProto CreateAttachmentIdProto();
+// Creates an AttachmentMetadata object from a repeated field of
+// AttachmentIdProto objects.
+//
+// Note: each record in the AttachmentMetadata will be marked as "on the
+// server".
+SYNC_EXPORT_PRIVATE sync_pb::AttachmentMetadata CreateAttachmentMetadata(
+ const google::protobuf::RepeatedPtrField<sync_pb::AttachmentIdProto>& ids);
+
} // namespace syncer
#endif // SYNC_INTERNAL_API_PUBLIC_BASE_ATTACHMENT_ID_PROTO_H_
« no previous file with comments | « sync/engine/syncer_util.cc ('k') | sync/internal_api/public/base/attachment_id_proto.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698