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

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

Issue 2898393002: Split Android-specific dependency from BackgroundLoaderOffliner. Create a subfolder of c/b/offline_… (Closed)
Patch Set: more build fixes Created 3 years, 7 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/core/background/offliner.h
diff --git a/components/offline_pages/core/background/offliner.h b/components/offline_pages/core/background/offliner.h
index c24aa46300745edaca26dcec929a82796cc605e7..20a953f5ae11d8c973e4bed89a4edf989634b690 100644
--- a/components/offline_pages/core/background/offliner.h
+++ b/components/offline_pages/core/background/offliner.h
@@ -97,6 +97,11 @@ class Offliner {
// returns true and canceled request will be delivered using callback.
virtual bool Cancel(const CancelCallback& callback) = 0;
+ // On some external condition changes (RAM pressure, browser backgrounded on
+ // low-level devices, etc) it is needed to terminate a load if there is one
+ // in progress. It is no-op if there is no active request loading.
+ virtual void TerminateLoadIfInProgress() = 0;
+
// Handles timeout scenario. Returns true if lowbar is met and try to do a
// snapshot of the current webcontents. If that is the case, the result of
// offlining will be provided by |completion_callback|.

Powered by Google App Engine
This is Rietveld 408576698