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

Unified Diff: components/offline_pages/core/background/request_queue.cc

Issue 2729763002: [Offline Pages] Pick correct request when resuming. (Closed)
Patch Set: nit Created 3 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/offline_pages/core/background/request_queue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/core/background/request_queue.cc
diff --git a/components/offline_pages/core/background/request_queue.cc b/components/offline_pages/core/background/request_queue.cc
index 406f0ae0ce4cc084756959fbc2680818253b07ab..bdf205453c24de53e2db1cfd77800f15c1f33110 100644
--- a/components/offline_pages/core/background/request_queue.cc
+++ b/components/offline_pages/core/background/request_queue.cc
@@ -128,11 +128,13 @@ void RequestQueue::PickNextRequest(
PickRequestTask::RequestNotPickedCallback not_picked_callback,
PickRequestTask::RequestCountCallback request_count_callback,
DeviceConditions& conditions,
- std::set<int64_t>& disabled_requests) {
+ std::set<int64_t>& disabled_requests,
+ std::deque<int64_t>& prioritized_requests) {
// Using the PickerContext, create a picker task.
- std::unique_ptr<Task> task(new PickRequestTask(
- store_.get(), policy, picked_callback, not_picked_callback,
- request_count_callback, conditions, disabled_requests));
+ std::unique_ptr<Task> task(
+ new PickRequestTask(store_.get(), policy, picked_callback,
+ not_picked_callback, request_count_callback,
+ conditions, disabled_requests, prioritized_requests));
// Queue up the picking task, it will call one of the callbacks when it
// completes.
« no previous file with comments | « components/offline_pages/core/background/request_queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698