OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/offline_pages/background/remove_requests_task.h" | 5 #include "components/offline_pages/core/background/remove_requests_task.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 | 8 |
9 namespace offline_pages { | 9 namespace offline_pages { |
10 | 10 |
11 RemoveRequestsTask::RemoveRequestsTask( | 11 RemoveRequestsTask::RemoveRequestsTask( |
12 RequestQueueStore* store, | 12 RequestQueueStore* store, |
13 const std::vector<int64_t>& request_ids, | 13 const std::vector<int64_t>& request_ids, |
14 const RequestQueueStore::UpdateCallback& callback) | 14 const RequestQueueStore::UpdateCallback& callback) |
15 : store_(store), | 15 : store_(store), |
(...skipping 27 matching lines...) Expand all Loading... |
43 CompleteWithResult(std::move(result)); | 43 CompleteWithResult(std::move(result)); |
44 } | 44 } |
45 | 45 |
46 void RemoveRequestsTask::CompleteWithResult( | 46 void RemoveRequestsTask::CompleteWithResult( |
47 std::unique_ptr<UpdateRequestsResult> result) { | 47 std::unique_ptr<UpdateRequestsResult> result) { |
48 callback_.Run(std::move(result)); | 48 callback_.Run(std::move(result)); |
49 TaskComplete(); | 49 TaskComplete(); |
50 } | 50 } |
51 | 51 |
52 } // namespace offline_pages | 52 } // namespace offline_pages |
OLD | NEW |