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

Unified Diff: components/offline_pages/background/request_coordinator.cc

Issue 2233493003: [Offline Pages] Remove expired requests from the queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing patching error. Created 4 years, 4 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
Index: components/offline_pages/background/request_coordinator.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
index cde6cede1f0810c79d13b57acbe799e983b330d1..15e3a675b7374f4883a49ee7942475391bf41feb 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -63,7 +63,7 @@ RequestCoordinator::RequestCoordinator(std::unique_ptr<OfflinerPolicy> policy,
policy_->GetSinglePageTimeLimitInSeconds())),
weak_ptr_factory_(this) {
DCHECK(policy_ != nullptr);
- picker_.reset(new RequestPicker(queue_.get(), policy_.get()));
+ picker_.reset(new RequestPicker(queue_.get(), policy_.get(), this));
}
RequestCoordinator::~RequestCoordinator() {}
@@ -364,4 +364,10 @@ void RequestCoordinator::GetOffliner() {
}
}
+void RequestCoordinator::NotifyRequestsExpired(
+ const std::vector<SavePageRequest>& expired_requests,
+ RequestQueue::UpdateRequestResult result) {
+ // Notify observers that requests are expired.
+}
+
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698