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

Side by Side Diff: chrome/browser/download/notification/download_notification_manager.h

Issue 1005393003: [Download Notification] Use NotificationUIManager instead of MessageCenter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the comments Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_ 6 #define CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "chrome/browser/download/download_ui_controller.h" 10 #include "chrome/browser/download/download_ui_controller.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // DownloadUIController::Delegate: 22 // DownloadUIController::Delegate:
23 void OnNewDownloadReady(content::DownloadItem* item) override; 23 void OnNewDownloadReady(content::DownloadItem* item) override;
24 24
25 // DownloadNotificationItem::Delegate: 25 // DownloadNotificationItem::Delegate:
26 void OnDownloadStarted(DownloadNotificationItem* item) override; 26 void OnDownloadStarted(DownloadNotificationItem* item) override;
27 void OnDownloadStopped(DownloadNotificationItem* item) override; 27 void OnDownloadStopped(DownloadNotificationItem* item) override;
28 void OnDownloadRemoved(DownloadNotificationItem* item) override; 28 void OnDownloadRemoved(DownloadNotificationItem* item) override;
29 29
30 private: 30 private:
31 Profile* profile_;
32
31 std::set<DownloadNotificationItem*> downloading_items_; 33 std::set<DownloadNotificationItem*> downloading_items_;
32 std::set<DownloadNotificationItem*> items_; 34 std::set<DownloadNotificationItem*> items_;
33 35
34 STLElementDeleter<std::set<DownloadNotificationItem*>> items_deleter_; 36 STLElementDeleter<std::set<DownloadNotificationItem*>> items_deleter_;
35 }; 37 };
36 38
37 #endif // CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_ 39 #endif // CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698