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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 job_->SetAuth(credentials); | 700 job_->SetAuth(credentials); |
701 } | 701 } |
702 | 702 |
703 void URLRequest::CancelAuth() { | 703 void URLRequest::CancelAuth() { |
704 DCHECK(job_); | 704 DCHECK(job_); |
705 DCHECK(job_->NeedsAuth()); | 705 DCHECK(job_->NeedsAuth()); |
706 | 706 |
707 job_->CancelAuth(); | 707 job_->CancelAuth(); |
708 } | 708 } |
709 | 709 |
| 710 bool URLRequest::HasAuth() const { |
| 711 DCHECK(job_); |
| 712 return job_->HasAuth(); |
| 713 } |
| 714 |
710 void URLRequest::ContinueWithCertificate(X509Certificate* client_cert) { | 715 void URLRequest::ContinueWithCertificate(X509Certificate* client_cert) { |
711 DCHECK(job_); | 716 DCHECK(job_); |
712 | 717 |
713 job_->ContinueWithCertificate(client_cert); | 718 job_->ContinueWithCertificate(client_cert); |
714 } | 719 } |
715 | 720 |
716 void URLRequest::ContinueDespiteLastError() { | 721 void URLRequest::ContinueDespiteLastError() { |
717 DCHECK(job_); | 722 DCHECK(job_); |
718 | 723 |
719 job_->ContinueDespiteLastError(); | 724 job_->ContinueDespiteLastError(); |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 new base::debug::StackTrace(NULL, 0); | 1018 new base::debug::StackTrace(NULL, 0); |
1014 *stack_trace_copy = stack_trace; | 1019 *stack_trace_copy = stack_trace; |
1015 stack_trace_.reset(stack_trace_copy); | 1020 stack_trace_.reset(stack_trace_copy); |
1016 } | 1021 } |
1017 | 1022 |
1018 const base::debug::StackTrace* URLRequest::stack_trace() const { | 1023 const base::debug::StackTrace* URLRequest::stack_trace() const { |
1019 return stack_trace_.get(); | 1024 return stack_trace_.get(); |
1020 } | 1025 } |
1021 | 1026 |
1022 } // namespace net | 1027 } // namespace net |
OLD | NEW |