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

Side by Side Diff: net/url_request/url_request.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, 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
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_http_job_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/url_request/url_request.h" 5 #include "net/url_request/url_request.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // for request headers are implemented. 252 // for request headers are implemented.
253 } 253 }
254 254
255 bool URLRequest::GetFullRequestHeaders(HttpRequestHeaders* headers) const { 255 bool URLRequest::GetFullRequestHeaders(HttpRequestHeaders* headers) const {
256 if (!job_.get()) 256 if (!job_.get())
257 return false; 257 return false;
258 258
259 return job_->GetFullRequestHeaders(headers); 259 return job_->GetFullRequestHeaders(headers);
260 } 260 }
261 261
262 int64 URLRequest::GetTotalReceivedBytes() const { 262 int64_t URLRequest::GetTotalReceivedBytes() const {
263 if (!job_.get()) 263 if (!job_.get())
264 return 0; 264 return 0;
265 265
266 return job_->GetTotalReceivedBytes(); 266 return job_->GetTotalReceivedBytes();
267 } 267 }
268 268
269 int64_t URLRequest::GetTotalSentBytes() const { 269 int64_t URLRequest::GetTotalSentBytes() const {
270 if (!job_.get()) 270 if (!job_.get())
271 return 0; 271 return 0;
272 272
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 } 1196 }
1197 1197
1198 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const { 1198 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const {
1199 if (job_) 1199 if (job_)
1200 job_->GetConnectionAttempts(out); 1200 job_->GetConnectionAttempts(out);
1201 else 1201 else
1202 out->clear(); 1202 out->clear();
1203 } 1203 }
1204 1204
1205 } // namespace net 1205 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698