| Index: sync/api/attachments/attachment.h
|
| diff --git a/sync/api/attachments/attachment.h b/sync/api/attachments/attachment.h
|
| index 799926994763addbb76522a9afa76a71c9b28974..51fe9863baa733401001b673c128fe89fe1f770c 100644
|
| --- a/sync/api/attachments/attachment.h
|
| +++ b/sync/api/attachments/attachment.h
|
| @@ -34,13 +34,14 @@
|
| // Used when creating a brand new attachment.
|
| static Attachment Create(const scoped_refptr<base::RefCountedMemory>& data);
|
|
|
| - // Creates an attachment with the supplied id and data.
|
| + // Creates an attachment with the supplied id, data and crc32c.
|
| //
|
| // Used when you want to recreate a specific attachment. E.g. creating a local
|
| // copy of an attachment that already exists on the sync server.
|
| static Attachment CreateFromParts(
|
| const AttachmentId& id,
|
| - const scoped_refptr<base::RefCountedMemory>& data);
|
| + const scoped_refptr<base::RefCountedMemory>& data,
|
| + uint32_t crc32c);
|
|
|
| // Returns this attachment's id.
|
| const AttachmentId& GetId() const;
|
| @@ -57,9 +58,11 @@
|
| private:
|
| AttachmentId id_;
|
| scoped_refptr<base::RefCountedMemory> data_;
|
| + uint32_t crc32c_;
|
|
|
| Attachment(const AttachmentId& id,
|
| - const scoped_refptr<base::RefCountedMemory>& data);
|
| + const scoped_refptr<base::RefCountedMemory>& data,
|
| + uint32_t crc32c);
|
| };
|
|
|
| typedef std::vector<syncer::Attachment> AttachmentList;
|
|
|