OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/engine/attachments/attachment_store_frontend.h" | 5 #include "components/sync/engine/attachments/attachment_store_frontend.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "components/sync/api/attachments/attachment.h" | |
13 #include "components/sync/engine/attachments/attachment_store_backend.h" | 12 #include "components/sync/engine/attachments/attachment_store_backend.h" |
| 13 #include "components/sync/model/attachments/attachment.h" |
14 | 14 |
15 namespace syncer { | 15 namespace syncer { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 // NoOp is needed to bind base::Passed(backend) in AttachmentStoreFrontend dtor. | 19 // NoOp is needed to bind base::Passed(backend) in AttachmentStoreFrontend dtor. |
20 // It doesn't need to do anything. | 20 // It doesn't need to do anything. |
21 void NoOp(std::unique_ptr<AttachmentStoreBackend> backend) {} | 21 void NoOp(std::unique_ptr<AttachmentStoreBackend> backend) {} |
22 | 22 |
23 } // namespace | 23 } // namespace |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 AttachmentStore::Component component, | 103 AttachmentStore::Component component, |
104 const AttachmentStore::ReadMetadataCallback& callback) { | 104 const AttachmentStore::ReadMetadataCallback& callback) { |
105 DCHECK(CalledOnValidThread()); | 105 DCHECK(CalledOnValidThread()); |
106 backend_task_runner_->PostTask( | 106 backend_task_runner_->PostTask( |
107 FROM_HERE, | 107 FROM_HERE, |
108 base::Bind(&AttachmentStoreBackend::ReadMetadata, | 108 base::Bind(&AttachmentStoreBackend::ReadMetadata, |
109 base::Unretained(backend_.get()), component, callback)); | 109 base::Unretained(backend_.get()), component, callback)); |
110 } | 110 } |
111 | 111 |
112 } // namespace syncer | 112 } // namespace syncer |
OLD | NEW |