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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed NetworkDelegate::OnRawBytesRead Created 5 years, 4 months 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: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index c9aa4cc2ed326c6518658e1a01917401f97711cf..5f4f0961da1f41900631d6b76b7fce7af3aaf3fa 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1541,6 +1541,9 @@ void URLRequestHttpJob::DoneWithRequest(CompletionCause reason) {
network_quality_estimator->NotifyRequestCompleted(*request());
}
+ // Notify about any new network usage.
+ MaybeNotifyNetworkBytes();
mmenke 2015/08/19 15:48:41 Why is this needed, when we call this in NotifyDon
sclittle 2015/08/20 01:10:49 This notification is no longer needed now that URL
+
RecordPerfHistograms(reason);
if (request_)
request_->set_received_response_content_length(prefilter_bytes_read());

Powered by Google App Engine
This is Rietveld 408576698