summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorpauljensen@chromium.org <pauljensen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-31 07:55:26 +0000
committerpauljensen@chromium.org <pauljensen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-31 07:55:26 +0000
commit116abdea490f5353ee33b1da6fe51cd6c6b7c87b (patch)
tree2396590661fcd67de7c1cbc342bf44c66aa1d0cc /net/url_request
parent372c41929555203fa3c3207518065de72a2722aa (diff)
downloadchromium_src-116abdea490f5353ee33b1da6fe51cd6c6b7c87b.zip
chromium_src-116abdea490f5353ee33b1da6fe51cd6c6b7c87b.tar.gz
chromium_src-116abdea490f5353ee33b1da6fe51cd6c6b7c87b.tar.bz2
Add connection-type-specific histograms of:
1. How long before connection type change. 2. How many bytes transfered before connection type change. 3. Fastest network RTT. 4. Time to first byte after connection type change. 5. Highest throughput. Review URL: https://chromiumcodereview.appspot.com/11929035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 617dac0..1f1ef65 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -945,9 +945,10 @@ void URLRequest::NotifyReadCompleted(int bytes_read) {
// Notify NetworkChangeNotifier that we just received network data.
// This is to identify cases where the NetworkChangeNotifier thinks we
- // are off-line but we are still receiving network data (crbug.com/124069).
+ // are off-line but we are still receiving network data (crbug.com/124069),
+ // and to get rough network connection measurements.
if (bytes_read > 0 && !was_cached())
- NetworkChangeNotifier::NotifyDataReceived(url());
+ NetworkChangeNotifier::NotifyDataReceived(*this, bytes_read);
if (delegate_)
delegate_->OnReadCompleted(this, bytes_read);