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

Side by Side Diff: net/http/http_network_transaction.cc

Issue 1316863007: Change GetTotalReceivedBytes() from int64 to int64_t. (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/http/http_network_transaction.h ('k') | net/http/http_network_transaction_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 380
381 void HttpNetworkTransaction::StopCaching() {} 381 void HttpNetworkTransaction::StopCaching() {}
382 382
383 bool HttpNetworkTransaction::GetFullRequestHeaders( 383 bool HttpNetworkTransaction::GetFullRequestHeaders(
384 HttpRequestHeaders* headers) const { 384 HttpRequestHeaders* headers) const {
385 // TODO(ttuttle): Make sure we've populated request_headers_. 385 // TODO(ttuttle): Make sure we've populated request_headers_.
386 *headers = request_headers_; 386 *headers = request_headers_;
387 return true; 387 return true;
388 } 388 }
389 389
390 int64 HttpNetworkTransaction::GetTotalReceivedBytes() const { 390 int64_t HttpNetworkTransaction::GetTotalReceivedBytes() const {
391 int64 total_received_bytes = total_received_bytes_; 391 int64_t total_received_bytes = total_received_bytes_;
392 if (stream_) 392 if (stream_)
393 total_received_bytes += stream_->GetTotalReceivedBytes(); 393 total_received_bytes += stream_->GetTotalReceivedBytes();
394 return total_received_bytes; 394 return total_received_bytes;
395 } 395 }
396 396
397 int64_t HttpNetworkTransaction::GetTotalSentBytes() const { 397 int64_t HttpNetworkTransaction::GetTotalSentBytes() const {
398 int64_t total_sent_bytes = total_sent_bytes_; 398 int64_t total_sent_bytes = total_sent_bytes_;
399 if (stream_) 399 if (stream_)
400 total_sent_bytes += stream_->GetTotalSentBytes(); 400 total_sent_bytes += stream_->GetTotalSentBytes();
401 return total_sent_bytes; 401 return total_sent_bytes;
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 DCHECK(stream_request_); 1660 DCHECK(stream_request_);
1661 1661
1662 // Since the transaction can restart with auth credentials, it may create a 1662 // Since the transaction can restart with auth credentials, it may create a
1663 // stream more than once. Accumulate all of the connection attempts across 1663 // stream more than once. Accumulate all of the connection attempts across
1664 // those streams by appending them to the vector: 1664 // those streams by appending them to the vector:
1665 for (const auto& attempt : stream_request_->connection_attempts()) 1665 for (const auto& attempt : stream_request_->connection_attempts())
1666 connection_attempts_.push_back(attempt); 1666 connection_attempts_.push_back(attempt);
1667 } 1667 }
1668 1668
1669 } // namespace net 1669 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction.h ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698