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 "content/browser/ssl/ssl_client_auth_handler.h" | 5 #include "content/browser/ssl/ssl_client_auth_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/browser/loader/resource_request_info_impl.h" | 9 #include "content/browser/loader/resource_request_info_impl.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 BrowserThread::PostTask( | 99 BrowserThread::PostTask( |
100 BrowserThread::UI, FROM_HERE, | 100 BrowserThread::UI, FROM_HERE, |
101 base::Bind(&SelectCertificateOnUIThread, | 101 base::Bind(&SelectCertificateOnUIThread, |
102 render_process_host_id, render_frame_host_id, | 102 render_process_host_id, render_frame_host_id, |
103 cert_request_info_, | 103 cert_request_info_, |
104 base::Bind(&SSLClientAuthHandler::CertificateSelected, | 104 base::Bind(&SSLClientAuthHandler::CertificateSelected, |
105 weak_factory_.GetWeakPtr()))); | 105 weak_factory_.GetWeakPtr()))); |
106 } | 106 } |
107 | 107 |
108 void SSLClientAuthHandler::CertificateSelected(net::X509Certificate* cert) { | 108 void SSLClientAuthHandler::CertificateSelected(net::X509Certificate* cert) { |
109 VLOG(1) << this << " DoCertificateSelected " << cert; | 109 DVLOG(1) << this << " DoCertificateSelected " << cert; |
110 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 110 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
111 | 111 |
112 callback_.Run(cert); | 112 callback_.Run(cert); |
113 // |this| may be deleted at this point. | 113 // |this| may be deleted at this point. |
114 } | 114 } |
115 | 115 |
116 } // namespace content | 116 } // namespace content |
OLD | NEW |