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 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
6 #define CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 6 #define CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "net/cert/x509_certificate.h" | 11 #include "net/ssl/client_cert_identity.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 class ClientCertificateDelegate; | 14 class ClientCertificateDelegate; |
15 class WebContents; | 15 class WebContents; |
16 } | 16 } |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 class SSLCertRequestInfo; | 19 class SSLCertRequestInfo; |
20 } | 20 } |
21 | 21 |
22 namespace chrome { | 22 namespace chrome { |
23 | 23 |
24 // Opens a constrained SSL client certificate selection dialog under |parent|, | 24 // Opens a constrained SSL client certificate selection dialog under |parent|, |
25 // offering certificates in |client_certs| for the host specified by | 25 // offering certificates in |client_certs| for the host specified by |
26 // |cert_request_info|. When the user has made a selection, the dialog will | 26 // |cert_request_info|. When the user has made a selection, the dialog will |
27 // report back to |delegate|. If the dialog is closed with no selection, | 27 // report back to |delegate|. If the dialog is closed with no selection, |
28 // |delegate| will simply be destroyed. | 28 // |delegate| will simply be destroyed. |
29 void ShowSSLClientCertificateSelector( | 29 void ShowSSLClientCertificateSelector( |
30 content::WebContents* contents, | 30 content::WebContents* contents, |
31 net::SSLCertRequestInfo* cert_request_info, | 31 net::SSLCertRequestInfo* cert_request_info, |
32 net::CertificateList client_certs, | 32 net::ClientCertIdentityList client_certs, |
33 std::unique_ptr<content::ClientCertificateDelegate> delegate); | 33 std::unique_ptr<content::ClientCertificateDelegate> delegate); |
34 | 34 |
35 } // namespace chrome | 35 } // namespace chrome |
36 | 36 |
37 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 37 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
OLD | NEW |