Index: content/public/browser/download_manager.h |
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h |
index 37c6d09da908f41dfdd78294aa55213577f244e8..6bb1f35156d26e5a4bca8b87de7e7f26fefbebfd 100644 |
--- a/content/public/browser/download_manager.h |
+++ b/content/public/browser/download_manager.h |
@@ -158,6 +158,12 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data { |
// is too slow, use an AllDownloadItemNotifier to count in-progress items. |
virtual int InProgressCount() const = 0; |
+ // The number of in progress (including paused) downloads. |
+ // Performance note: this loops over all items. If profiling finds that this |
+ // is too slow, use an AllDownloadItemNotifier to count in-progress items. |
+ // This excludes downloads that are marked as malicious. |
+ virtual int NonMaliciousInProgressCount() const = 0; |
+ |
virtual BrowserContext* GetBrowserContext() const = 0; |
// Checks whether downloaded files still exist. Updates state of downloads |