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 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "components/offline_pages/background/request_queue_results.h" | 11 #include "components/offline_pages/core/background/request_queue_results.h" |
12 #include "components/offline_pages/background/save_page_request.h" | 12 #include "components/offline_pages/core/background/save_page_request.h" |
13 #include "components/offline_pages/core/task.h" | 13 #include "components/offline_pages/core/task.h" |
14 | 14 |
15 namespace offline_pages { | 15 namespace offline_pages { |
16 | 16 |
17 class DeviceConditions; | 17 class DeviceConditions; |
18 class OfflinerPolicy; | 18 class OfflinerPolicy; |
19 class PickRequestTask; | 19 class PickRequestTask; |
20 class RequestCoordinatorEventLogger; | 20 class RequestCoordinatorEventLogger; |
21 class RequestNotifier; | 21 class RequestNotifier; |
22 class RequestQueueStore; | 22 class RequestQueueStore; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 RequestNotPickedCallback not_picked_callback_; | 106 RequestNotPickedCallback not_picked_callback_; |
107 std::unique_ptr<DeviceConditions> device_conditions_; | 107 std::unique_ptr<DeviceConditions> device_conditions_; |
108 const std::set<int64_t>& disabled_requests_; | 108 const std::set<int64_t>& disabled_requests_; |
109 // Allows us to pass a weak pointer to callbacks. | 109 // Allows us to pass a weak pointer to callbacks. |
110 base::WeakPtrFactory<PickRequestTask> weak_ptr_factory_; | 110 base::WeakPtrFactory<PickRequestTask> weak_ptr_factory_; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace offline_pages | 113 } // namespace offline_pages |
114 | 114 |
115 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ | 115 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ |
OLD | NEW |