| 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_CLEANUP_TASK_FACTORY_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CLEANUP_TASK_FACTORY_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_CLEANUP_TASK_FACTORY_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CLEANUP_TASK_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "components/offline_pages/background/cleanup_task.h" | 12 #include "components/offline_pages/core/background/cleanup_task.h" |
| 13 | 13 |
| 14 namespace offline_pages { | 14 namespace offline_pages { |
| 15 | 15 |
| 16 class OfflinerPolicy; | 16 class OfflinerPolicy; |
| 17 class RequestCoordinatorEventLogger; | 17 class RequestCoordinatorEventLogger; |
| 18 class RequestNotifier; | 18 class RequestNotifier; |
| 19 class RequestQueueStore; | 19 class RequestQueueStore; |
| 20 | 20 |
| 21 class CleanupTaskFactory { | 21 class CleanupTaskFactory { |
| 22 public: | 22 public: |
| 23 CleanupTaskFactory(OfflinerPolicy* policy, | 23 CleanupTaskFactory(OfflinerPolicy* policy, |
| 24 RequestNotifier* notifier, | 24 RequestNotifier* notifier, |
| 25 RequestCoordinatorEventLogger* event_logger); | 25 RequestCoordinatorEventLogger* event_logger); |
| 26 | 26 |
| 27 ~CleanupTaskFactory(); | 27 ~CleanupTaskFactory(); |
| 28 | 28 |
| 29 std::unique_ptr<CleanupTask> CreateCleanupTask(RequestQueueStore* store); | 29 std::unique_ptr<CleanupTask> CreateCleanupTask(RequestQueueStore* store); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 // Unowned pointer to the Policy | 32 // Unowned pointer to the Policy |
| 33 OfflinerPolicy* policy_; | 33 OfflinerPolicy* policy_; |
| 34 // Unowned pointer to the notifier | 34 // Unowned pointer to the notifier |
| 35 RequestNotifier* notifier_; | 35 RequestNotifier* notifier_; |
| 36 // Unowned pointer to the EventLogger | 36 // Unowned pointer to the EventLogger |
| 37 RequestCoordinatorEventLogger* event_logger_; | 37 RequestCoordinatorEventLogger* event_logger_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace offline_pages | 40 } // namespace offline_pages |
| 41 | 41 |
| 42 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_CLEANUP_TASK_FACTORY_H_ | 42 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CLEANUP_TASK_FACTORY_H_ |
| OLD | NEW |