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

Unified Diff: chrome/browser/android/offline_pages/prerendering_offliner.h

Issue 2742833004: Fix the Download Notifications for Offline Pages to indicate bytes loaded. (Closed)
Patch Set: Created 3 years, 9 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: chrome/browser/android/offline_pages/prerendering_offliner.h
diff --git a/chrome/browser/android/offline_pages/prerendering_offliner.h b/chrome/browser/android/offline_pages/prerendering_offliner.h
index 9b1104cc57c095584df446246558d7c27dbe1107..18f637acdc0cbb6a640b9d38957c4842ca9974d7 100644
--- a/chrome/browser/android/offline_pages/prerendering_offliner.h
+++ b/chrome/browser/android/offline_pages/prerendering_offliner.h
@@ -35,7 +35,8 @@ class PrerenderingOffliner : public Offliner {
// Offliner implementation.
bool LoadAndSave(const SavePageRequest& request,
- const CompletionCallback& callback) override;
+ const CompletionCallback& completion_callback,
+ const ProgressCallback& progress_callback) override;
void Cancel() override;
bool HandleTimeout(const SavePageRequest& request) override;
@@ -91,6 +92,7 @@ class PrerenderingOffliner : public Offliner {
std::unique_ptr<SavePageRequest> pending_request_;
// Callback to call when pending request completes/fails.
CompletionCallback completion_callback_;
+ ProgressCallback progress_callback_;
bool is_low_end_device_;
// ApplicationStatusListener to monitor if the Chrome moves to the foreground.
std::unique_ptr<base::android::ApplicationStatusListener> app_listener_;

Powered by Google App Engine
This is Rietveld 408576698