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

Unified Diff: chrome/browser/download/notification/download_notification_item.h

Issue 1105953002: Pop up the notification when the download is interrupted or completed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dn-xxxx-close-bug
Patch Set: Addressed comments #7 Created 5 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: chrome/browser/download/notification/download_notification_item.h
diff --git a/chrome/browser/download/notification/download_notification_item.h b/chrome/browser/download/notification/download_notification_item.h
index b0e40c6e0baa1ebb5e721a769811b603b71fa717..48ac18b5372f07a834c49858080f07d318aace1c 100644
--- a/chrome/browser/download/notification/download_notification_item.h
+++ b/chrome/browser/download/notification/download_notification_item.h
@@ -84,6 +84,7 @@ class DownloadNotificationItem : public content::DownloadItem::Observer {
void OnDownloadDestroyed(content::DownloadItem* item) override;
void CloseNotificationByUser();
+ void CloseNotificationByNonUser();
void UpdateNotificationData(NotificationUpdateType type);
void SetNotificationImage(int resource_id);
@@ -104,8 +105,9 @@ class DownloadNotificationItem : public content::DownloadItem::Observer {
scoped_ptr<std::vector<DownloadCommands::Command>> GetPossibleActions() const;
bool openable_ = false;
- bool downloading_ = false;
int image_resource_id_ = 0;
+ content::DownloadItem::DownloadState previous_download_state_ =
+ content::DownloadItem::MAX_DOWNLOAD_STATE; // As uninitialized state
Profile* profile_;
scoped_refptr<NotificationWatcher> watcher_;
scoped_ptr<Notification> notification_;

Powered by Google App Engine
This is Rietveld 408576698