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

Unified Diff: components/offline_pages/core/background/pick_request_task.h

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 | « no previous file | components/offline_pages/core/background/pick_request_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/core/background/pick_request_task.h
diff --git a/components/offline_pages/core/background/pick_request_task.h b/components/offline_pages/core/background/pick_request_task.h
index ef046124b1e1c5462e5208f25b3400036eb4a67d..b6cad2cce1868ec3bb3e778a8070d295ffaa1d63 100644
--- a/components/offline_pages/core/background/pick_request_task.h
+++ b/components/offline_pages/core/background/pick_request_task.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_PICK_REQUEST_TASK_H_
#define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_PICK_REQUEST_TASK_H_
+#include <deque>
#include <set>
#include "base/memory/weak_ptr.h"
@@ -43,7 +44,8 @@ class PickRequestTask : public Task {
RequestNotPickedCallback not_picked_callback,
RequestCountCallback request_count_callback,
DeviceConditions& device_conditions,
- const std::set<int64_t>& disabled_requests);
+ const std::set<int64_t>& disabled_requests,
+ std::deque<int64_t>& prioritized_requests);
~PickRequestTask() override;
@@ -94,6 +96,7 @@ class PickRequestTask : public Task {
RequestCountCallback request_count_callback_;
std::unique_ptr<DeviceConditions> device_conditions_;
const std::set<int64_t>& disabled_requests_;
+ std::deque<int64_t>& prioritized_requests_;
// Allows us to pass a weak pointer to callbacks.
base::WeakPtrFactory<PickRequestTask> weak_ptr_factory_;
};
« no previous file with comments | « no previous file | components/offline_pages/core/background/pick_request_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698