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

Side by Side Diff: net/url_request/url_request.cc

Issue 859213006: Cancel client auth requests when not promptable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-auth-cancel-1
Patch Set: worker_common.js was missing a license header (also a rebase) Created 5 years, 9 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 | « content/test/data/workers/worker_tls_client_auth.html ('k') | no next file » | 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 new base::debug::StackTrace(NULL, 0); 1190 new base::debug::StackTrace(NULL, 0);
1191 *stack_trace_copy = stack_trace; 1191 *stack_trace_copy = stack_trace;
1192 stack_trace_.reset(stack_trace_copy); 1192 stack_trace_.reset(stack_trace_copy);
1193 } 1193 }
1194 1194
1195 const base::debug::StackTrace* URLRequest::stack_trace() const { 1195 const base::debug::StackTrace* URLRequest::stack_trace() const {
1196 return stack_trace_.get(); 1196 return stack_trace_.get();
1197 } 1197 }
1198 1198
1199 } // namespace net 1199 } // namespace net
OLDNEW
« no previous file with comments | « content/test/data/workers/worker_tls_client_auth.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698