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 SYNC_API_ATTACHMENTS_ATTACHMENT_H_ | 5 #ifndef SYNC_API_ATTACHMENTS_ATTACHMENT_H_ |
6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_H_ | 6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/ref_counted_memory.h" | 14 #include "base/memory/ref_counted_memory.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "sync/api/attachments/attachment_id.h" | 16 #include "sync/api/attachments/attachment_id.h" |
16 #include "sync/base/sync_export.h" | 17 #include "sync/base/sync_export.h" |
17 | 18 |
18 namespace syncer { | 19 namespace syncer { |
19 | 20 |
20 // A blob of in-memory data attached to a sync item. | 21 // A blob of in-memory data attached to a sync item. |
21 // | 22 // |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 Attachment(const AttachmentId& id, | 62 Attachment(const AttachmentId& id, |
62 const scoped_refptr<base::RefCountedMemory>& data); | 63 const scoped_refptr<base::RefCountedMemory>& data); |
63 }; | 64 }; |
64 | 65 |
65 typedef std::vector<syncer::Attachment> AttachmentList; | 66 typedef std::vector<syncer::Attachment> AttachmentList; |
66 typedef std::map<AttachmentId, Attachment> AttachmentMap; | 67 typedef std::map<AttachmentId, Attachment> AttachmentMap; |
67 | 68 |
68 } // namespace syncer | 69 } // namespace syncer |
69 | 70 |
70 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_H_ | 71 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_H_ |
OLD | NEW |