summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_stats.h
diff options
context:
space:
mode:
authorrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-21 17:27:49 +0000
committerrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-21 17:27:49 +0000
commit7bb88fb2386f0805fbecaa4b14e7809f3718b0bc (patch)
tree85272e27efef74be9d7e248d18561e04428669e7 /content/browser/download/download_stats.h
parent1b580217903418e0f0ca118331ec5c6270335155 (diff)
downloadchromium_src-7bb88fb2386f0805fbecaa4b14e7809f3718b0bc.zip
chromium_src-7bb88fb2386f0805fbecaa4b14e7809f3718b0bc.tar.gz
chromium_src-7bb88fb2386f0805fbecaa4b14e7809f3718b0bc.tar.bz2
Make cancel remove cancelled download from active queues at time of cancel.
Also add various tests required or enabled by this change. This changes two aspects of Cancel semantics (for downloads, not save page): a) Cancel can now be called anytime during the lifetime of a download, and b) if it is called before the history callback occurs, the download will be removed from the system (no where to store it persistently while waiting) BUG=85408 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101510 Review URL: http://codereview.chromium.org/7796014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_stats.h')
-rw-r--r--content/browser/download/download_stats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/download/download_stats.h b/content/browser/download/download_stats.h
index 7ca7a23..d80cba2 100644
--- a/content/browser/download/download_stats.h
+++ b/content/browser/download/download_stats.h
@@ -64,6 +64,9 @@ enum DownloadCountTypes {
// Counts iterations of the BaseFile::AppendDataToFile() loop.
WRITE_LOOP_COUNT,
+ // Downloads that were removed by the user.
+ REMOVED_COUNT,
+
DOWNLOAD_COUNT_TYPES_LAST_ENTRY
};