| 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_CLIENT_CERTIFICATE_SELECTOR_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
| 6 #define CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 6 #define CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 | 9 |
| 10 class TabContents; | 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 11 | 13 |
| 12 namespace net { | 14 namespace net { |
| 13 class HttpNetworkSession; | 15 class HttpNetworkSession; |
| 14 class SSLCertRequestInfo; | 16 class SSLCertRequestInfo; |
| 15 class X509Certificate; | 17 class X509Certificate; |
| 16 } | 18 } |
| 17 | 19 |
| 18 namespace chrome { | 20 namespace chrome { |
| 19 | 21 |
| 20 // Opens a constrained SSL client certificate selection dialog under |parent|, | 22 // Opens a constrained SSL client certificate selection dialog under |parent|, |
| 21 // offering certificates from |cert_request_info|. When the user has made a | 23 // offering certificates from |cert_request_info|. When the user has made a |
| 22 // selection, the dialog will report back to |callback|. |callback| is notified | 24 // selection, the dialog will report back to |callback|. |callback| is notified |
| 23 // when the dialog closes in call cases; if the user cancels the dialog, we call | 25 // when the dialog closes in call cases; if the user cancels the dialog, we call |
| 24 // with a NULL certificate. | 26 // with a NULL certificate. |
| 25 void ShowSSLClientCertificateSelector( | 27 void ShowSSLClientCertificateSelector( |
| 26 TabContents* tab_contents, | 28 content::WebContents* contents, |
| 27 const net::HttpNetworkSession* network_session, | 29 const net::HttpNetworkSession* network_session, |
| 28 net::SSLCertRequestInfo* cert_request_info, | 30 net::SSLCertRequestInfo* cert_request_info, |
| 29 const base::Callback<void(net::X509Certificate*)>& callback); | 31 const base::Callback<void(net::X509Certificate*)>& callback); |
| 30 | 32 |
| 31 } // namespace chrome | 33 } // namespace chrome |
| 32 | 34 |
| 33 #endif // CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 35 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
| OLD | NEW |