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_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ |
6 #define COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ | 6 #define COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 struct AttachmentEntry { | 57 struct AttachmentEntry { |
58 AttachmentEntry(const Attachment& attachment, | 58 AttachmentEntry(const Attachment& attachment, |
59 AttachmentStore::Component initial_reference_component); | 59 AttachmentStore::Component initial_reference_component); |
60 AttachmentEntry(const AttachmentEntry& other); | 60 AttachmentEntry(const AttachmentEntry& other); |
61 ~AttachmentEntry(); | 61 ~AttachmentEntry(); |
62 | 62 |
63 Attachment attachment; | 63 Attachment attachment; |
64 std::set<AttachmentStore::Component> components; | 64 std::set<AttachmentStore::Component> components; |
65 }; | 65 }; |
66 | 66 |
67 typedef std::map<AttachmentId, AttachmentEntry> AttachmentEntryMap; | 67 using AttachmentEntryMap = std::map<AttachmentId, AttachmentEntry>; |
68 AttachmentEntryMap attachments_; | 68 AttachmentEntryMap attachments_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(InMemoryAttachmentStore); | 70 DISALLOW_COPY_AND_ASSIGN(InMemoryAttachmentStore); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace syncer | 73 } // namespace syncer |
74 | 74 |
75 #endif // COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ | 75 #endif // COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ |
OLD | NEW |