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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/layered_network_delegate.h" 5 #include "net/base/layered_network_delegate.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 LayeredNetworkDelegate::LayeredNetworkDelegate( 9 LayeredNetworkDelegate::LayeredNetworkDelegate(
10 scoped_ptr<NetworkDelegate> nested_network_delegate) 10 scoped_ptr<NetworkDelegate> nested_network_delegate)
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 void LayeredNetworkDelegate::OnResponseStarted(URLRequest* request) { 133 void LayeredNetworkDelegate::OnResponseStarted(URLRequest* request) {
134 OnResponseStartedInternal(request); 134 OnResponseStartedInternal(request);
135 nested_network_delegate_->NotifyResponseStarted(request); 135 nested_network_delegate_->NotifyResponseStarted(request);
136 } 136 }
137 137
138 void LayeredNetworkDelegate::OnResponseStartedInternal(URLRequest* request) { 138 void LayeredNetworkDelegate::OnResponseStartedInternal(URLRequest* request) {
139 } 139 }
140 140
141 void LayeredNetworkDelegate::OnRawBytesRead(const URLRequest& request, 141 void LayeredNetworkDelegate::OnNetworkBytesReceived(const URLRequest& request,
142 int bytes_read) { 142 int64_t bytes_received) {
143 OnRawBytesReadInternal(request, bytes_read); 143 OnNetworkBytesReceivedInternal(request, bytes_received);
144 nested_network_delegate_->NotifyRawBytesRead(request, bytes_read); 144 nested_network_delegate_->NotifyNetworkBytesReceived(request, bytes_received);
145 } 145 }
146 146
147 void LayeredNetworkDelegate::OnRawBytesReadInternal(const URLRequest& request, 147 void LayeredNetworkDelegate::OnNetworkBytesReceivedInternal(
148 int bytes_read) { 148 const URLRequest& request,
149 } 149 int64_t bytes_received) {}
150 150
151 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) { 151 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) {
152 OnCompletedInternal(request, started); 152 OnCompletedInternal(request, started);
153 nested_network_delegate_->NotifyCompleted(request, started); 153 nested_network_delegate_->NotifyCompleted(request, started);
154 } 154 }
155 155
156 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request, 156 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request,
157 bool started) { 157 bool started) {
158 } 158 }
159 159
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } 264 }
265 265
266 void LayeredNetworkDelegate:: 266 void LayeredNetworkDelegate::
267 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 267 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
268 const URLRequest& request, 268 const URLRequest& request,
269 const GURL& target_url, 269 const GURL& target_url,
270 const GURL& referrer_url) const { 270 const GURL& referrer_url) const {
271 } 271 }
272 272
273 } // namespace net 273 } // namespace net
OLDNEW
« 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