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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 150 } |
151 | 151 |
152 void URLRequest::Delegate::OnAuthRequired(URLRequest* request, | 152 void URLRequest::Delegate::OnAuthRequired(URLRequest* request, |
153 AuthChallengeInfo* auth_info) { | 153 AuthChallengeInfo* auth_info) { |
154 request->CancelAuth(); | 154 request->CancelAuth(); |
155 } | 155 } |
156 | 156 |
157 void URLRequest::Delegate::OnCertificateRequested( | 157 void URLRequest::Delegate::OnCertificateRequested( |
158 URLRequest* request, | 158 URLRequest* request, |
159 SSLCertRequestInfo* cert_request_info) { | 159 SSLCertRequestInfo* cert_request_info) { |
160 request->Cancel(); | 160 request->CancelWithError(ERR_SSL_CLIENT_AUTH_CERT_NEEDED); |
161 } | 161 } |
162 | 162 |
163 void URLRequest::Delegate::OnSSLCertificateError(URLRequest* request, | 163 void URLRequest::Delegate::OnSSLCertificateError(URLRequest* request, |
164 const SSLInfo& ssl_info, | 164 const SSLInfo& ssl_info, |
165 bool is_hsts_ok) { | 165 bool is_hsts_ok) { |
166 request->Cancel(); | 166 request->Cancel(); |
167 } | 167 } |
168 | 168 |
169 void URLRequest::Delegate::OnBeforeNetworkStart(URLRequest* request, | 169 void URLRequest::Delegate::OnBeforeNetworkStart(URLRequest* request, |
170 bool* defer) { | 170 bool* defer) { |
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 new base::debug::StackTrace(NULL, 0); | 1195 new base::debug::StackTrace(NULL, 0); |
1196 *stack_trace_copy = stack_trace; | 1196 *stack_trace_copy = stack_trace; |
1197 stack_trace_.reset(stack_trace_copy); | 1197 stack_trace_.reset(stack_trace_copy); |
1198 } | 1198 } |
1199 | 1199 |
1200 const base::debug::StackTrace* URLRequest::stack_trace() const { | 1200 const base::debug::StackTrace* URLRequest::stack_trace() const { |
1201 return stack_trace_.get(); | 1201 return stack_trace_.get(); |
1202 } | 1202 } |
1203 | 1203 |
1204 } // namespace net | 1204 } // namespace net |
OLD | NEW |