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

Unified Diff: content/browser/download/download_resource_handler.h

Issue 8746020: Fixed a header name error in UMA statistics that record what servers accept range requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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: content/browser/download/download_resource_handler.h
diff --git a/content/browser/download/download_resource_handler.h b/content/browser/download/download_resource_handler.h
index 15db6a27deeb73320eb0f1fcfb103928fb788597..666dec72a7060bc3ccadea5a721303a964dcebca 100644
--- a/content/browser/download/download_resource_handler.h
+++ b/content/browser/download/download_resource_handler.h
@@ -114,11 +114,14 @@ class DownloadResourceHandler : public ResourceHandler {
ResourceDispatcherHost* rdh_;
bool is_paused_;
base::OneShotTimer<DownloadResourceHandler> pause_timer_;
- base::TimeTicks download_start_time_; // used to collect stats.
- base::TimeTicks last_read_time_; // used to collect stats.
- size_t last_buffer_size_; // used to collect stats.
- int64 bytes_read_; // used to collect stats.
- std::string accepts_ranges_; // used to collect stats.
+
+ // The following are used to collect stats.
+ base::TimeTicks download_start_time_;
+ base::TimeTicks last_read_time_;
+ size_t last_buffer_size_;
+ int64 bytes_read_;
+ std::string accepts_ranges_;
+
static const int kReadBufSize = 32768; // bytes
static const int kThrottleTimeMs = 200; // milliseconds

Powered by Google App Engine
This is Rietveld 408576698