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

Unified Diff: components/offline_pages/core/background/offliner_stub.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_stub.h
diff --git a/components/offline_pages/core/background/offliner_stub.h b/components/offline_pages/core/background/offliner_stub.h
index d6ddc2486bd70b8db6d7e1883aca550713305580..a4485990b828491d7301132f4b7b170fe4e75399 100644
--- a/components/offline_pages/core/background/offliner_stub.h
+++ b/components/offline_pages/core/background/offliner_stub.h
@@ -25,6 +25,8 @@ class OfflinerStub : public Offliner {
bool Cancel(const CancelCallback& callback) override;
+ void TerminateLoadIfInProgress() override;
+
bool HandleTimeout(int64_t request_id) override;
void disable_loading() { disable_loading_ = true; }
@@ -38,7 +40,7 @@ class OfflinerStub : public Offliner {
void enable_snapshot_on_last_retry() { snapshot_on_last_retry_ = true; }
private:
- base::Closure completion_callback_;
+ CompletionCallback completion_callback_;
std::unique_ptr<SavePageRequest> pending_request_;
bool disable_loading_;
bool enable_callback_;

Powered by Google App Engine
This is Rietveld 408576698