Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: components/offline_pages/core/background/cleanup_task.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698