| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |