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

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

Issue 2239133002: [Offline pages] Downloads UI: Adding bridge for issuing notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@download-notifications
Patch Set: Addressing CR feedback Created 4 years, 4 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
« 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
new file mode 100644
index 0000000000000000000000000000000000000000..c35c80d86b4f109d6ed81c947d59f3aec5e4b488
--- /dev/null
+++ b/components/offline_pages/downloads/offline_page_download_notifier.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_NOTIFIER_H_
+#define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_NOTIFIER_H_
+
+#include "components/offline_pages/downloads/download_ui_item.h"
+
+namespace offline_pages {
+
+struct OfflinePageDownloadNotifier {
+ public:
+ virtual ~OfflinePageDownloadNotifier() = default;
+
+ virtual void NotifyDownloadSuccessful(const DownloadUIItem& item) = 0;
+ virtual void NotifyDownloadFailed(const DownloadUIItem& item) = 0;
+ virtual void NotifyDownloadProgress(const DownloadUIItem& item) = 0;
+ virtual void NotifyDownloadPaused(const DownloadUIItem& item) = 0;
+ virtual void NotifyDownloadInterrupted(const DownloadUIItem& item) = 0;
+ virtual void NotifyDownloadCanceled(const DownloadUIItem& item) = 0;
+};
+
+} // namespace offline_pages
+
+#endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_OFFLINE_PAGE_DOWNLOAD_NOTIFIER_H_
« 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