[email protected] | f245542 | 2011-07-21 02:56:58 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | 1f18184a | 2010-07-21 19:34:49 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | ||||
6 | #define CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | ||||
[email protected] | 32b76ef | 2010-07-26 23:08:24 | [diff] [blame] | 7 | #pragma once |
[email protected] | 1f18184a | 2010-07-21 19:34:49 | [diff] [blame] | 8 | |
[email protected] | 1f18184a | 2010-07-21 19:34:49 | [diff] [blame] | 9 | class SSLClientAuthHandler; |
[email protected] | 95a8885 | 2010-08-10 00:15:35 | [diff] [blame] | 10 | class TabContents; |
[email protected] | 1f18184a | 2010-07-21 19:34:49 | [diff] [blame] | 11 | |
12 | namespace net { | ||||
13 | class SSLCertRequestInfo; | ||||
14 | } | ||||
15 | |||||
16 | namespace browser { | ||||
17 | |||||
[email protected] | 95a8885 | 2010-08-10 00:15:35 | [diff] [blame] | 18 | // Opens a constrained SSL client certificate selection dialog under |parent|, |
19 | // offering certificates from |cert_request_info|. When the user has made a | ||||
20 | // selection, the dialog will report back to |delegate|. |delegate| is notified | ||||
21 | // when the dialog closes in call cases; if the user cancels the dialog, we call | ||||
22 | // with a NULL certificate. | ||||
[email protected] | 1f18184a | 2010-07-21 19:34:49 | [diff] [blame] | 23 | void ShowSSLClientCertificateSelector( |
[email protected] | 95a8885 | 2010-08-10 00:15:35 | [diff] [blame] | 24 | TabContents* parent, |
[email protected] | 1f18184a | 2010-07-21 19:34:49 | [diff] [blame] | 25 | net::SSLCertRequestInfo* cert_request_info, |
26 | SSLClientAuthHandler* delegate); | ||||
27 | |||||
28 | } // namespace browser | ||||
29 | |||||
30 | #endif // CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |