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/get_requests_task.h" | 5 #include "components/offline_pages/core/background/get_requests_task.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 | 10 |
11 namespace offline_pages { | 11 namespace offline_pages { |
12 | 12 |
13 GetRequestsTask::GetRequestsTask( | 13 GetRequestsTask::GetRequestsTask( |
14 RequestQueueStore* store, | 14 RequestQueueStore* store, |
15 const RequestQueueStore::GetRequestsCallback& callback) | 15 const RequestQueueStore::GetRequestsCallback& callback) |
(...skipping 11 matching lines...) Expand all Loading... |
27 } | 27 } |
28 | 28 |
29 void GetRequestsTask::CompleteWithResult( | 29 void GetRequestsTask::CompleteWithResult( |
30 bool success, | 30 bool success, |
31 std::vector<std::unique_ptr<SavePageRequest>> requests) { | 31 std::vector<std::unique_ptr<SavePageRequest>> requests) { |
32 callback_.Run(success, std::move(requests)); | 32 callback_.Run(success, std::move(requests)); |
33 TaskComplete(); | 33 TaskComplete(); |
34 } | 34 } |
35 | 35 |
36 } // namespace offline_pages | 36 } // namespace offline_pages |
OLD | NEW |