Index: chrome/browser/download/download_service.h |
diff --git a/chrome/browser/download/download_service.h b/chrome/browser/download/download_service.h |
index 3c3f6b6675729dda4079e97e518c84312f5964d8..229d0137be604e88984a4a07336acc8c1913d285 100644 |
--- a/chrome/browser/download/download_service.h |
+++ b/chrome/browser/download/download_service.h |
@@ -47,9 +47,17 @@ class DownloadService : public BrowserContextKeyedService { |
// Number of downloads associated with this instance of the service. |
int DownloadCount() const; |
asanka
2013/10/11 16:02:35
Are DownloadCount() and DownloadCountAllProfiles()
felt
2013/10/11 17:26:44
They seemed like potentially useful utility functi
|
+ // Number of non-dangerous downloads associated with this instance of the |
+ // service. This excludes downloads that are marked as dangerous. |
+ int NonDangerousDownloadCount() const; |
+ |
// Number of downloads associated with all profiles. |
static int DownloadCountAllProfiles(); |
+ // Number of non-dangerous downloads associated with all profiles. |
+ // This excludes downloads that are marked as dangerous. |
+ static int NonDangerousDownloadCountAllProfiles(); |
+ |
// Sets the DownloadManagerDelegate associated with this object and |
// its DownloadManager. Takes ownership of |delegate|, and destroys |
// the previous delegate. For testing. |