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

Unified Diff: net/base/layered_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 empty cronet OnRawBytesRead implementation 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
« no previous file with comments | « net/base/layered_network_delegate.h ('k') | net/base/layered_network_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate.cc
diff --git a/net/base/layered_network_delegate.cc b/net/base/layered_network_delegate.cc
index 47441f567b6bcb845f164cb406d6733f5887d4de..58254aea952f96960ebb1898158d76e67fcfa644 100644
--- a/net/base/layered_network_delegate.cc
+++ b/net/base/layered_network_delegate.cc
@@ -138,15 +138,15 @@ void LayeredNetworkDelegate::OnResponseStarted(URLRequest* request) {
void LayeredNetworkDelegate::OnResponseStartedInternal(URLRequest* request) {
}
-void LayeredNetworkDelegate::OnRawBytesRead(const URLRequest& request,
- int bytes_read) {
- OnRawBytesReadInternal(request, bytes_read);
- nested_network_delegate_->NotifyRawBytesRead(request, bytes_read);
+void LayeredNetworkDelegate::OnNetworkBytesReceived(const URLRequest& request,
+ int64_t bytes_received) {
+ OnNetworkBytesReceivedInternal(request, bytes_received);
+ nested_network_delegate_->NotifyNetworkBytesReceived(request, bytes_received);
}
-void LayeredNetworkDelegate::OnRawBytesReadInternal(const URLRequest& request,
- int bytes_read) {
-}
+void LayeredNetworkDelegate::OnNetworkBytesReceivedInternal(
+ const URLRequest& request,
+ int64_t bytes_received) {}
void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) {
OnCompletedInternal(request, started);
« no previous file with comments | « net/base/layered_network_delegate.h ('k') | net/base/layered_network_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698