| Index: chrome/browser/download/notification/download_notification_manager.h
|
| diff --git a/chrome/browser/download/notification/download_notification_manager.h b/chrome/browser/download/notification/download_notification_manager.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3998db920d84e519ac019b308daadf08ab53c6f9
|
| --- /dev/null
|
| +++ b/chrome/browser/download/notification/download_notification_manager.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2015 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 CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_
|
| +#define CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_
|
| +
|
| +#include <set>
|
| +
|
| +#include "chrome/browser/download/download_ui_controller.h"
|
| +#include "chrome/browser/download/notification/download_notification_item.h"
|
| +
|
| +class Profile;
|
| +
|
| +class DownloadNotificationManager : public DownloadUIController::Delegate,
|
| + public DownloadNotificationItem::Delegate {
|
| + public:
|
| + explicit DownloadNotificationManager(Profile* profile);
|
| + ~DownloadNotificationManager() override;
|
| +
|
| + // DownloadUIController::Delegate:
|
| + void OnNewDownloadReady(content::DownloadItem* item) override;
|
| +
|
| + // DownloadNotificationItem::Delegate:
|
| + void OnDownloadStarted(DownloadNotificationItem* item) override;
|
| + void OnDownloadStopped(DownloadNotificationItem* item) override;
|
| + void OnDownloadRemoved(DownloadNotificationItem* item) override;
|
| +
|
| + private:
|
| + void UpdateDownloadingMultipleFiles();
|
| +
|
| + bool is_downloading_multiple_files_;
|
| + std::set<DownloadNotificationItem*> downloading_items_;
|
| + std::set<DownloadNotificationItem*> items_;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_DOWNLOAD_NOTIFICATION_DOWNLOAD_NOTIFICATION_MANAGER_H_
|
|
|