| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 return job_->PopulateNetErrorDetails(details); | 381 return job_->PopulateNetErrorDetails(details); |
| 382 } | 382 } |
| 383 | 383 |
| 384 bool URLRequest::GetRemoteEndpoint(IPEndPoint* endpoint) const { | 384 bool URLRequest::GetRemoteEndpoint(IPEndPoint* endpoint) const { |
| 385 if (!job_) | 385 if (!job_) |
| 386 return false; | 386 return false; |
| 387 | 387 |
| 388 return job_->GetRemoteEndpoint(endpoint); | 388 return job_->GetRemoteEndpoint(endpoint); |
| 389 } | 389 } |
| 390 | 390 |
| 391 bool URLRequest::GetResponseCookies(ResponseCookies* cookies) { | |
| 392 DCHECK(job_.get()); | |
| 393 return job_->GetResponseCookies(cookies); | |
| 394 } | |
| 395 | |
| 396 void URLRequest::GetMimeType(string* mime_type) const { | 391 void URLRequest::GetMimeType(string* mime_type) const { |
| 397 DCHECK(job_.get()); | 392 DCHECK(job_.get()); |
| 398 job_->GetMimeType(mime_type); | 393 job_->GetMimeType(mime_type); |
| 399 } | 394 } |
| 400 | 395 |
| 401 void URLRequest::GetCharset(string* charset) const { | 396 void URLRequest::GetCharset(string* charset) const { |
| 402 DCHECK(job_.get()); | 397 DCHECK(job_.get()); |
| 403 job_->GetCharset(charset); | 398 job_->GetCharset(charset); |
| 404 } | 399 } |
| 405 | 400 |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 } | 1195 } |
| 1201 | 1196 |
| 1202 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const { | 1197 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const { |
| 1203 if (job_) | 1198 if (job_) |
| 1204 job_->GetConnectionAttempts(out); | 1199 job_->GetConnectionAttempts(out); |
| 1205 else | 1200 else |
| 1206 out->clear(); | 1201 out->clear(); |
| 1207 } | 1202 } |
| 1208 | 1203 |
| 1209 } // namespace net | 1204 } // namespace net |
| OLD | NEW |