| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |