Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3627)

Unified Diff: chrome/browser/download/download_service.h

Issue 7466033: Fix warning prompting on closing a window that will cancel downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged up to latest (mostly around DownloadService changes. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_service.h
diff --git a/chrome/browser/download/download_service.h b/chrome/browser/download/download_service.h
index 4d754b0fe9fc72ce1469a95038e4a5a0c8cb321a..f81c0b52b8763fbc8e28e0306b4b7dc946df3829 100644
--- a/chrome/browser/download/download_service.h
+++ b/chrome/browser/download/download_service.h
@@ -29,6 +29,12 @@ class DownloadService : public ProfileKeyedService {
// Has a download manager been created? (By calling above function.)
bool HasCreatedDownloadManager();
+ // Number of downloads associated with this instance of the service.
+ int DownloadCount();
+
+ // Number of downloads associated with all profiles.
+ static int TotalDownloadCount();
+
// Sets the DownloadManagerDelegate associated with this object and
// its DownloadManager. Takes ownership of |delegate|, and destroys
// the previous delegate. For testing.

Powered by Google App Engine
This is Rietveld 408576698