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 | 11 |
12 namespace content { | 12 namespace content { |
13 class ClientCertificateDelegate; | 13 class ClientCertificateDelegate; |
14 class WebContents; | 14 class WebContents; |
15 } | 15 } |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 class SSLCertRequestInfo; | 18 class SSLCertRequestInfo; |
19 class X509Certificate; | |
20 } | 19 } |
21 | 20 |
22 namespace chrome { | 21 namespace chrome { |
23 | 22 |
24 // Opens a constrained SSL client certificate selection dialog under |parent|, | 23 // Opens a constrained SSL client certificate selection dialog under |parent|, |
25 // offering certificates from |cert_request_info|. When the user has made a | 24 // offering certificates from |cert_request_info|. When the user has made a |
26 // selection, the dialog will report back to |delegate|. If the dialog is | 25 // selection, the dialog will report back to |delegate|. If the dialog is |
27 // closed with no selection, |delegate| will simply be destroyed. | 26 // closed with no selection, |delegate| will simply be destroyed. |
28 void ShowSSLClientCertificateSelector( | 27 void ShowSSLClientCertificateSelector( |
29 content::WebContents* contents, | 28 content::WebContents* contents, |
30 net::SSLCertRequestInfo* cert_request_info, | 29 net::SSLCertRequestInfo* cert_request_info, |
31 std::unique_ptr<content::ClientCertificateDelegate> delegate); | 30 std::unique_ptr<content::ClientCertificateDelegate> delegate); |
32 | 31 |
33 } // namespace chrome | 32 } // namespace chrome |
34 | 33 |
35 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 34 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
OLD | NEW |