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_INTERNAL_API_PUBLIC_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ | 6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 #include "sync/api/attachments/attachment.h" | 14 #include "components/sync/api/attachments/attachment.h" |
15 #include "sync/api/attachments/attachment_id.h" | 15 #include "components/sync/api/attachments/attachment_id.h" |
16 #include "sync/api/attachments/attachment_store.h" | 16 #include "components/sync/api/attachments/attachment_store.h" |
17 #include "sync/api/attachments/attachment_store_backend.h" | 17 #include "components/sync/api/attachments/attachment_store_backend.h" |
18 #include "sync/base/sync_export.h" | 18 #include "components/sync/base/sync_export.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class SequencedTaskRunner; | 21 class SequencedTaskRunner; |
22 } // namespace base | 22 } // namespace base |
23 | 23 |
24 namespace syncer { | 24 namespace syncer { |
25 | 25 |
26 // An in-memory implementation of AttachmentStore used for testing. | 26 // An in-memory implementation of AttachmentStore used for testing. |
27 // InMemoryAttachmentStore is not threadsafe, it lives on backend thread and | 27 // InMemoryAttachmentStore is not threadsafe, it lives on backend thread and |
28 // posts callbacks with results on |callback_task_runner|. | 28 // posts callbacks with results on |callback_task_runner|. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 }; | 66 }; |
67 | 67 |
68 typedef std::map<AttachmentId, AttachmentEntry> AttachmentEntryMap; | 68 typedef std::map<AttachmentId, AttachmentEntry> AttachmentEntryMap; |
69 AttachmentEntryMap attachments_; | 69 AttachmentEntryMap attachments_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(InMemoryAttachmentStore); | 71 DISALLOW_COPY_AND_ASSIGN(InMemoryAttachmentStore); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace syncer | 74 } // namespace syncer |
75 | 75 |
76 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ | 76 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ |
OLD | NEW |