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-16 17:49:21 +0000
committerrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-16 17:49:21 +0000
commitbb416051aefa48323633d33bade585c2d70edf10 (patch)
tree7eb1935534b84a6edd730bc8001c883517e4f640 /content/browser/download/download_stats.h
parent6d0702239d9c4cc113155946b51e9b4d4fa2567a (diff)
downloadchromium_src-bb416051aefa48323633d33bade585c2d70edf10.zip
chromium_src-bb416051aefa48323633d33bade585c2d70edf10.tar.gz
chromium_src-bb416051aefa48323633d33bade585c2d70edf10.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 Review URL: http://codereview.chromium.org/7796014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101510 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
};