| OLD | NEW |
| 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 #ifndef COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ | 5 #ifndef COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ |
| 6 #define COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ | 6 #define COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 uint32_t GetCrc32c() const; | 56 uint32_t GetCrc32c() const; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 AttachmentId id_; | 59 AttachmentId id_; |
| 60 scoped_refptr<base::RefCountedMemory> data_; | 60 scoped_refptr<base::RefCountedMemory> data_; |
| 61 | 61 |
| 62 Attachment(const AttachmentId& id, | 62 Attachment(const AttachmentId& id, |
| 63 const scoped_refptr<base::RefCountedMemory>& data); | 63 const scoped_refptr<base::RefCountedMemory>& data); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 typedef std::vector<syncer::Attachment> AttachmentList; | 66 typedef std::vector<Attachment> AttachmentList; |
| 67 typedef std::map<AttachmentId, Attachment> AttachmentMap; | 67 typedef std::map<AttachmentId, Attachment> AttachmentMap; |
| 68 | 68 |
| 69 } // namespace syncer | 69 } // namespace syncer |
| 70 | 70 |
| 71 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ | 71 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ |
| OLD | NEW |