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

Side by Side Diff: net/base/layered_network_delegate.cc

Issue 1362793003: Notify NetworkDelegate when bytes have been sent over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 years, 2 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void LayeredNetworkDelegate::OnNetworkBytesReceived(const URLRequest& request, 141 void LayeredNetworkDelegate::OnNetworkBytesReceived(const URLRequest& request,
142 int64_t bytes_received) { 142 int64_t bytes_received) {
143 OnNetworkBytesReceivedInternal(request, bytes_received); 143 OnNetworkBytesReceivedInternal(request, bytes_received);
144 nested_network_delegate_->NotifyNetworkBytesReceived(request, bytes_received); 144 nested_network_delegate_->NotifyNetworkBytesReceived(request, bytes_received);
145 } 145 }
146 146
147 void LayeredNetworkDelegate::OnNetworkBytesReceivedInternal( 147 void LayeredNetworkDelegate::OnNetworkBytesReceivedInternal(
148 const URLRequest& request, 148 const URLRequest& request,
149 int64_t bytes_received) {} 149 int64_t bytes_received) {}
150 150
151 void LayeredNetworkDelegate::OnNetworkBytesSent(const URLRequest& request,
152 int64_t bytes_sent) {
153 OnNetworkBytesSentInternal(request, bytes_sent);
154 nested_network_delegate_->NotifyNetworkBytesSent(request, bytes_sent);
155 }
156
157 void LayeredNetworkDelegate::OnNetworkBytesSentInternal(
158 const URLRequest& request,
159 int64_t bytes_sent) {}
160
151 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) { 161 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) {
152 OnCompletedInternal(request, started); 162 OnCompletedInternal(request, started);
153 nested_network_delegate_->NotifyCompleted(request, started); 163 nested_network_delegate_->NotifyCompleted(request, started);
154 } 164 }
155 165
156 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request, 166 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request,
157 bool started) { 167 bool started) {
158 } 168 }
159 169
160 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { 170 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 280 }
271 281
272 void LayeredNetworkDelegate:: 282 void LayeredNetworkDelegate::
273 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 283 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
274 const URLRequest& request, 284 const URLRequest& request,
275 const GURL& target_url, 285 const GURL& target_url,
276 const GURL& referrer_url) const { 286 const GURL& referrer_url) const {
277 } 287 }
278 288
279 } // namespace net 289 } // 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