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 #include "components/sync/api/attachments/attachment_store.h" | 5 #include "components/sync/api/attachments/attachment_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | |
11 #include "base/location.h" | 10 #include "base/location.h" |
12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
13 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
15 #include "components/sync/core/attachments/attachment_store_frontend.h" | 14 #include "components/sync/core/attachments/attachment_store_frontend.h" |
16 #include "components/sync/core/attachments/in_memory_attachment_store.h" | 15 #include "components/sync/core/attachments/in_memory_attachment_store.h" |
17 #include "components/sync/core/attachments/on_disk_attachment_store.h" | 16 #include "components/sync/core/attachments/on_disk_attachment_store.h" |
18 | 17 |
19 namespace syncer { | 18 namespace syncer { |
20 | 19 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 frontend()->DropReference(sync_component_, ids, | 129 frontend()->DropReference(sync_component_, ids, |
131 base::Bind(&NoOpDropCallback)); | 130 base::Bind(&NoOpDropCallback)); |
132 } | 131 } |
133 | 132 |
134 void AttachmentStoreForSync::ReadMetadataForSync( | 133 void AttachmentStoreForSync::ReadMetadataForSync( |
135 const ReadMetadataCallback& callback) { | 134 const ReadMetadataCallback& callback) { |
136 frontend()->ReadMetadata(sync_component_, callback); | 135 frontend()->ReadMetadata(sync_component_, callback); |
137 } | 136 } |
138 | 137 |
139 } // namespace syncer | 138 } // namespace syncer |
OLD | NEW |