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

Unified Diff: components/offline_pages/core/background/offliner_stub.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_stub.h
diff --git a/components/offline_pages/core/background/offliner_stub.h b/components/offline_pages/core/background/offliner_stub.h
index f792260636408186a73cc2378d046e80c46677e5..821f5ea9ed5f10acc164a13ab4a49c170cfce4a7 100644
--- a/components/offline_pages/core/background/offliner_stub.h
+++ b/components/offline_pages/core/background/offliner_stub.h
@@ -27,11 +27,18 @@ class OfflinerStub : public Offliner {
bool cancel_called() { return cancel_called_; }
+ void reset_cancel_called() { cancel_called_ = false; }
+
+ bool HandleTimeout(const SavePageRequest& request) override;
+
+ void enable_snapshot_on_last_retry() { snapshot_on_last_retry_ = true; }
+
private:
CompletionCallback callback_;
bool disable_loading_;
bool enable_callback_;
bool cancel_called_;
+ bool snapshot_on_last_retry_;
};
} // namespace offline_pages
« no previous file with comments | « components/offline_pages/core/background/offliner.h ('k') | components/offline_pages/core/background/offliner_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698