| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_FACTORY_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_FACTORY_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include <set> |
| 11 |
| 12 #include "components/offline_pages/background/pick_request_task.h" |
| 13 |
| 14 namespace offline_pages { |
| 15 |
| 16 class DeviceContitions; |
| 17 class OfflinerPolicy; |
| 18 class RequestCoordinatorEventLogger; |
| 19 class RequestNotifier; |
| 20 class RequestQueueStore; |
| 21 |
| 22 class PickRequestTaskFactory { |
| 23 public: |
| 24 PickRequestTaskFactory(OfflinerPolicy* policy, |
| 25 RequestNotifier* notifier, |
| 26 RequestCoordinatorEventLogger* event_logger); |
| 27 |
| 28 ~PickRequestTaskFactory(); |
| 29 |
| 30 std::unique_ptr<PickRequestTask> CreatePickerTask( |
| 31 RequestQueueStore* store, |
| 32 const PickRequestTask::RequestPickedCallback& picked_callback, |
| 33 const PickRequestTask::RequestNotPickedCallback& not_picked_callback, |
| 34 DeviceConditions& conditions, |
| 35 std::set<int64_t>& disabled_requests); |
| 36 |
| 37 private: |
| 38 // Unowned pointer to the Policy |
| 39 OfflinerPolicy* policy_; |
| 40 // Unowned pointer to the notifier |
| 41 RequestNotifier* notifier_; |
| 42 // Unowned pointer to the EventLogger |
| 43 RequestCoordinatorEventLogger* event_logger_; |
| 44 }; |
| 45 |
| 46 } // namespace offline_pages |
| 47 |
| 48 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_FACTORY_H_ |
| OLD | NEW |