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

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

Issue 2637563002: [Offline Pages] Snapshotting on timeout of last retry. (Closed)
Patch Set: merging with master again Created 3 years, 10 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 a7a5718596cc1c89d7d29e26c13aa21730241d24..c2cf768fa75c2a7f154028abd0a7a7d7bf7d4775 100644
--- a/components/offline_pages/core/background/offliner.h
+++ b/components/offline_pages/core/background/offliner.h
@@ -75,6 +75,10 @@ class Offliner {
// CompletionCallback.
virtual void Cancel() = 0;
+ // Handles timeout scenario. Returns true if lowbar is met and try to do a
+ // snapshot of the current webcontents.
+ virtual bool HandleTimeout(const SavePageRequest& request) = 0;
+
// TODO(dougarnett): add policy support methods.
};

Powered by Google App Engine
This is Rietveld 408576698