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

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

Issue 1421983002: Include tab IDs when reporting data use accounting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@data_use_scoped_vector
Patch Set: Fixed external_data_use_observer test Created 5 years, 1 month 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::OnNetworkBytesReceived(const URLRequest& request, 141 void LayeredNetworkDelegate::OnNetworkBytesReceived(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 URLRequest* request,
149 int64_t bytes_received) {} 149 int64_t bytes_received) {}
150 150
151 void LayeredNetworkDelegate::OnNetworkBytesSent(const URLRequest& request, 151 void LayeredNetworkDelegate::OnNetworkBytesSent(URLRequest* request,
152 int64_t bytes_sent) { 152 int64_t bytes_sent) {
153 OnNetworkBytesSentInternal(request, bytes_sent); 153 OnNetworkBytesSentInternal(request, bytes_sent);
154 nested_network_delegate_->NotifyNetworkBytesSent(request, bytes_sent); 154 nested_network_delegate_->NotifyNetworkBytesSent(request, bytes_sent);
155 } 155 }
156 156
157 void LayeredNetworkDelegate::OnNetworkBytesSentInternal( 157 void LayeredNetworkDelegate::OnNetworkBytesSentInternal(URLRequest* request,
158 const URLRequest& request, 158 int64_t bytes_sent) {}
159 int64_t bytes_sent) {}
160 159
161 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) { 160 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) {
162 OnCompletedInternal(request, started); 161 OnCompletedInternal(request, started);
163 nested_network_delegate_->NotifyCompleted(request, started); 162 nested_network_delegate_->NotifyCompleted(request, started);
164 } 163 }
165 164
166 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request, 165 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request,
167 bool started) { 166 bool started) {
168 } 167 }
169 168
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 278 }
280 279
281 void LayeredNetworkDelegate:: 280 void LayeredNetworkDelegate::
282 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 281 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
283 const URLRequest& request, 282 const URLRequest& request,
284 const GURL& target_url, 283 const GURL& target_url,
285 const GURL& referrer_url) const { 284 const GURL& referrer_url) const {
286 } 285 }
287 286
288 } // namespace net 287 } // 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