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 #include "components/offline_pages/background/cleanup_task.h" | 5 #include "components/offline_pages/core/background/cleanup_task.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "components/offline_pages/background/offliner_policy.h" | 9 #include "components/offline_pages/core/background/offliner_policy.h" |
10 #include "components/offline_pages/background/offliner_policy_utils.h" | 10 #include "components/offline_pages/core/background/offliner_policy_utils.h" |
11 #include "components/offline_pages/background/request_coordinator_event_logger.h
" | 11 #include "components/offline_pages/core/background/request_coordinator_event_log
ger.h" |
12 #include "components/offline_pages/background/request_notifier.h" | 12 #include "components/offline_pages/core/background/request_notifier.h" |
13 #include "components/offline_pages/background/request_queue_store.h" | 13 #include "components/offline_pages/core/background/request_queue_store.h" |
14 #include "components/offline_pages/background/save_page_request.h" | 14 #include "components/offline_pages/core/background/save_page_request.h" |
15 | 15 |
16 namespace offline_pages { | 16 namespace offline_pages { |
17 | 17 |
18 CleanupTask::CleanupTask(RequestQueueStore* store, | 18 CleanupTask::CleanupTask(RequestQueueStore* store, |
19 OfflinerPolicy* policy, | 19 OfflinerPolicy* policy, |
20 RequestNotifier* notifier, | 20 RequestNotifier* notifier, |
21 RequestCoordinatorEventLogger* event_logger) | 21 RequestCoordinatorEventLogger* event_logger) |
22 : store_(store), | 22 : store_(store), |
23 policy_(policy), | 23 policy_(policy), |
24 notifier_(notifier), | 24 notifier_(notifier), |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 if (status != OfflinerPolicyUtils::RequestExpirationStatus::VALID && | 100 if (status != OfflinerPolicyUtils::RequestExpirationStatus::VALID && |
101 request->request_state() != SavePageRequest::RequestState::OFFLINING) { | 101 request->request_state() != SavePageRequest::RequestState::OFFLINING) { |
102 // TODO(petewil): Push both request and reason, will need to change type | 102 // TODO(petewil): Push both request and reason, will need to change type |
103 // of list to pairs. | 103 // of list to pairs. |
104 expired_request_ids->push_back(request->request_id()); | 104 expired_request_ids->push_back(request->request_id()); |
105 } | 105 } |
106 } | 106 } |
107 } | 107 } |
108 | 108 |
109 } // namespace offline_pages | 109 } // namespace offline_pages |
OLD | NEW |