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

Side by Side Diff: chrome/browser/devtools/devtools_network_transaction.cc

Issue 1327763003: Added and implemented URLRequest::GetTotalSentBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spdy_sent_bytes_impl
Patch Set: Addressed nits Created 5 years, 3 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
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 "chrome/browser/devtools/devtools_network_transaction.h" 5 #include "chrome/browser/devtools/devtools_network_transaction.h"
6 6
7 #include "chrome/browser/devtools/devtools_network_controller.h" 7 #include "chrome/browser/devtools/devtools_network_controller.h"
8 #include "chrome/browser/devtools/devtools_network_interceptor.h" 8 #include "chrome/browser/devtools/devtools_network_interceptor.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/upload_progress.h" 10 #include "net/base/upload_progress.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 bool DevToolsNetworkTransaction::GetFullRequestHeaders( 209 bool DevToolsNetworkTransaction::GetFullRequestHeaders(
210 net::HttpRequestHeaders* headers) const { 210 net::HttpRequestHeaders* headers) const {
211 return network_transaction_->GetFullRequestHeaders(headers); 211 return network_transaction_->GetFullRequestHeaders(headers);
212 } 212 }
213 213
214 int64 DevToolsNetworkTransaction::GetTotalReceivedBytes() const { 214 int64 DevToolsNetworkTransaction::GetTotalReceivedBytes() const {
215 return network_transaction_->GetTotalReceivedBytes(); 215 return network_transaction_->GetTotalReceivedBytes();
216 } 216 }
217 217
218 int64_t DevToolsNetworkTransaction::GetTotalSentBytes() const {
219 return network_transaction_->GetTotalSentBytes();
220 }
221
218 void DevToolsNetworkTransaction::DoneReading() { 222 void DevToolsNetworkTransaction::DoneReading() {
219 network_transaction_->DoneReading(); 223 network_transaction_->DoneReading();
220 } 224 }
221 225
222 const net::HttpResponseInfo* 226 const net::HttpResponseInfo*
223 DevToolsNetworkTransaction::GetResponseInfo() const { 227 DevToolsNetworkTransaction::GetResponseInfo() const {
224 return network_transaction_->GetResponseInfo(); 228 return network_transaction_->GetResponseInfo();
225 } 229 }
226 230
227 net::LoadState DevToolsNetworkTransaction::GetLoadState() const { 231 net::LoadState DevToolsNetworkTransaction::GetLoadState() const {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 278 }
275 279
276 void DevToolsNetworkTransaction::FireThrottledCallback() { 280 void DevToolsNetworkTransaction::FireThrottledCallback() {
277 DCHECK(!callback_.is_null()); 281 DCHECK(!callback_.is_null());
278 DCHECK(callback_type_ == READ || callback_type_ == START); 282 DCHECK(callback_type_ == READ || callback_type_ == START);
279 net::CompletionCallback callback = callback_; 283 net::CompletionCallback callback = callback_;
280 callback_.Reset(); 284 callback_.Reset();
281 callback_type_ = NONE; 285 callback_type_ = NONE;
282 callback.Run(throttled_result_); 286 callback.Run(throttled_result_);
283 } 287 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_network_transaction.h ('k') | net/http/failing_http_transaction_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698