| 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_CORE_BACKGROUND_PICK_REQUEST_TASK_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_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 RequestQueueStore; | 20 class RequestQueueStore; |
| 21 | 21 |
| 22 typedef bool (PickRequestTask::*RequestCompareFunction)( | 22 typedef bool (PickRequestTask::*RequestCompareFunction)( |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 RequestNotPickedCallback not_picked_callback_; | 93 RequestNotPickedCallback not_picked_callback_; |
| 94 RequestCountCallback request_count_callback_; | 94 RequestCountCallback request_count_callback_; |
| 95 std::unique_ptr<DeviceConditions> device_conditions_; | 95 std::unique_ptr<DeviceConditions> device_conditions_; |
| 96 const std::set<int64_t>& disabled_requests_; | 96 const std::set<int64_t>& disabled_requests_; |
| 97 // Allows us to pass a weak pointer to callbacks. | 97 // Allows us to pass a weak pointer to callbacks. |
| 98 base::WeakPtrFactory<PickRequestTask> weak_ptr_factory_; | 98 base::WeakPtrFactory<PickRequestTask> weak_ptr_factory_; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace offline_pages | 101 } // namespace offline_pages |
| 102 | 102 |
| 103 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_H_ | 103 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_PICK_REQUEST_TASK_H_ |
| OLD | NEW |