| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 RequestCountCallback request_count_callback_; | 112 RequestCountCallback request_count_callback_; |
| 113 std::unique_ptr<DeviceConditions> device_conditions_; | 113 std::unique_ptr<DeviceConditions> device_conditions_; |
| 114 const std::set<int64_t>& disabled_requests_; | 114 const std::set<int64_t>& disabled_requests_; |
| 115 // Allows us to pass a weak pointer to callbacks. | 115 // Allows us to pass a weak pointer to callbacks. |
| 116 base::WeakPtrFactory<PickRequestTask> weak_ptr_factory_; | 116 base::WeakPtrFactory<PickRequestTask> weak_ptr_factory_; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace offline_pages | 119 } // namespace offline_pages |
| 120 | 120 |
| 121 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ | 121 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ |
| OLD | NEW |