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

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: Last little things from Achuith and Miranda. 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();
achuithb 2011/10/14 19:22:10 nit: const
Randy Smith (Not in Mondays) 2011/10/14 19:30:47 Done.
+
+ // Number of downloads associated with all profiles.
+ static int TotalDownloadCount();
Paweł Hajdan Jr. 2011/10/14 21:26:19 nit: Unless there is an existing convention, I'd l
Randy Smith (Not in Mondays) 2011/10/15 01:42:20 Done.
+
// 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