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

Unified Diff: components/offline_pages/downloads/offline_page_download_notifier.h

Issue 2537373004: [OfflinePages] Call NotifyInterrupted for pending requests (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « components/offline_pages/downloads/download_ui_item.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/downloads/offline_page_download_notifier.h
diff --git a/components/offline_pages/downloads/offline_page_download_notifier.h b/components/offline_pages/downloads/offline_page_download_notifier.h
index c35c80d86b4f109d6ed81c947d59f3aec5e4b488..74921852440d78451837614358f93d106b807d2f 100644
--- a/components/offline_pages/downloads/offline_page_download_notifier.h
+++ b/components/offline_pages/downloads/offline_page_download_notifier.h
@@ -13,11 +13,23 @@ struct OfflinePageDownloadNotifier {
public:
virtual ~OfflinePageDownloadNotifier() = default;
+ // Reports that |item| has completed successfully.
virtual void NotifyDownloadSuccessful(const DownloadUIItem& item) = 0;
+
+ // Reports that |item| has completed unsuccessfully.
virtual void NotifyDownloadFailed(const DownloadUIItem& item) = 0;
+
+ // Reports that |item| is active and possibly making progress.
virtual void NotifyDownloadProgress(const DownloadUIItem& item) = 0;
+
+ // Reports that |item| has been paused (and so it is not active).
virtual void NotifyDownloadPaused(const DownloadUIItem& item) = 0;
+
+ // Reports that any progress on |item| has been interrupted. It is pending
+ // or available for another attempt when conditions allows.
virtual void NotifyDownloadInterrupted(const DownloadUIItem& item) = 0;
+
+ // Reports that |item| has been canceled.
virtual void NotifyDownloadCanceled(const DownloadUIItem& item) = 0;
};
« no previous file with comments | « components/offline_pages/downloads/download_ui_item.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698