diff options
author | ahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 00:29:16 +0000 |
---|---|---|
committer | ahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 00:29:16 +0000 |
commit | c2db5bf058b6e7da8c1a747e722698c3d1de6608 (patch) | |
tree | 78631bef946a7e8ca102041dcda715ddaae0961a /content/browser/download/download_stats.h | |
parent | 65787745ae90498fadb741db6f5d94f5fb56509d (diff) | |
download | chromium_src-c2db5bf058b6e7da8c1a747e722698c3d1de6608.zip chromium_src-c2db5bf058b6e7da8c1a747e722698c3d1de6608.tar.gz chromium_src-c2db5bf058b6e7da8c1a747e722698c3d1de6608.tar.bz2 |
Added UMA statistics to see what servers accept range requests.
We want to see what proprotion don't accept range requests, to evaluate
the impact of closing the connection on download pause.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8659006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_stats.h')
-rw-r--r-- | content/browser/download/download_stats.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/download/download_stats.h b/content/browser/download/download_stats.h index f3e25fa..0b9334f 100644 --- a/content/browser/download/download_stats.h +++ b/content/browser/download/download_stats.h @@ -108,6 +108,9 @@ void RecordOpen(const base::Time& end, bool first); // new download is added to the history. void RecordHistorySize(int size); +// Record whether or not the server accepts ranges, and the download size . +void RecordAcceptsRanges(const std::string& accepts_ranges, int64 download_len); + // Record the total number of items and the number of in-progress items showing // in the shelf when it closes. Set |autoclose| to true when the shelf is // closing itself, false when the user explicitly closed it. |