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

Side by Side Diff: components/sync/engine/attachments/in_memory_attachment_store.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/sync/engine/attachments/attachment_uploader.h ('k') | components/sync/engine/model_safe_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698