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

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

Issue 2266323002: Cancel prerendering when a request is paused or removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.h
diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h
index 2b874332bc58508c60d21a306186a16b792aed2c..ef92fbfc2b2e13a1084f74f19eed89a247ae5b8b 100644
--- a/components/offline_pages/background/request_coordinator.h
+++ b/components/offline_pages/background/request_coordinator.h
@@ -183,6 +183,9 @@ class RequestCoordinator : public KeyedService, public RequestNotifier {
void TryNextRequest();
+ // If there is an active request in the list, cancel that request.
+ void CancelActiveRequestIfItMatches(const std::vector<int64_t>& request_ids);
+
// Returns the appropriate offliner to use, getting a new one from the factory
// if needed.
void GetOffliner();

Powered by Google App Engine
This is Rietveld 408576698