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

Unified Diff: net/base/network_delegate.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/base/network_delegate.cc
diff --git a/net/base/network_delegate.cc b/net/base/network_delegate.cc
index 40eb66545ed2d42b0c572c44f6dc095928f28d8a..82c0cf6d0f0615b17db7fffeb481eb45828a6798 100644
--- a/net/base/network_delegate.cc
+++ b/net/base/network_delegate.cc
@@ -89,10 +89,11 @@ void NetworkDelegate::NotifyResponseStarted(URLRequest* request) {
OnResponseStarted(request);
}
-void NetworkDelegate::NotifyRawBytesRead(const URLRequest& request,
- int bytes_read) {
+void NetworkDelegate::NotifyNetworkBytesReceived(const URLRequest& request,
+ int64_t bytes_received) {
DCHECK(CalledOnValidThread());
- OnRawBytesRead(request, bytes_read);
+ DCHECK_GT(bytes_received, 0);
+ OnNetworkBytesReceived(request, bytes_received);
}
void NetworkDelegate::NotifyBeforeRedirect(URLRequest* request,

Powered by Google App Engine
This is Rietveld 408576698