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

Unified Diff: components/offline_pages/core/downloads/download_notifying_observer.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: components/offline_pages/core/downloads/download_notifying_observer.h
diff --git a/components/offline_pages/core/downloads/download_notifying_observer.h b/components/offline_pages/core/downloads/download_notifying_observer.h
index 6980102b47f32b6d4b7bb1980a701afcc8c2984f..cf860427a6804695778bc29f20ee94df3f4581a9 100644
--- a/components/offline_pages/core/downloads/download_notifying_observer.h
+++ b/components/offline_pages/core/downloads/download_notifying_observer.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "components/offline_pages/core/background/request_coordinator.h"
#include "components/offline_pages/core/client_policy_controller.h"
+#include "components/offline_pages/core/downloads/download_ui_item.h"
namespace offline_pages {
@@ -38,6 +39,8 @@ class DownloadNotifyingObserver : public RequestCoordinator::Observer,
void OnCompleted(
const SavePageRequest& request,
RequestCoordinator::BackgroundSavePageResult status) override;
+ void OnNetworkProgress(const SavePageRequest& request,
+ int64_t received_bytes) override;
private:
friend class DownloadNotifyingObserverTest;

Powered by Google App Engine
This is Rietveld 408576698