OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DOWNLOAD_STATUS_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/download/all_download_item_notifier.h" | 11 #include "chrome/browser/download/all_download_item_notifier.h" |
12 #include "content/public/browser/download_item.h" | 12 #include "content/public/browser/download_item.h" |
13 #include "content/public/browser/download_manager.h" | 13 #include "content/public/browser/download_manager.h" |
14 | 14 |
15 // Keeps track of download progress for the entire browser. | 15 // Keeps track of download progress for the entire browser. |
16 class DownloadStatusUpdater | 16 class DownloadStatusUpdater |
17 : public AllDownloadItemNotifier::Observer { | 17 : public AllDownloadItemNotifier::Observer { |
18 public: | 18 public: |
19 DownloadStatusUpdater(); | 19 DownloadStatusUpdater(); |
20 ~DownloadStatusUpdater() override; | 20 ~DownloadStatusUpdater() override; |
(...skipping 24 matching lines...) Expand all Loading... |
45 // Virtual to be overridable for testing. | 45 // Virtual to be overridable for testing. |
46 virtual void UpdateAppIconDownloadProgress(content::DownloadItem* download); | 46 virtual void UpdateAppIconDownloadProgress(content::DownloadItem* download); |
47 | 47 |
48 private: | 48 private: |
49 std::vector<AllDownloadItemNotifier*> notifiers_; | 49 std::vector<AllDownloadItemNotifier*> notifiers_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater); | 51 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater); |
52 }; | 52 }; |
53 | 53 |
54 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ | 54 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ |
OLD | NEW |