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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
6 #define CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
8 #include "base/callback_forward.h"
9 #include "base/memory/scoped_ptr.h"
12 class ClientCertificateDelegate
;
17 class SSLCertRequestInfo
;
18 class X509Certificate
;
23 // Opens a constrained SSL client certificate selection dialog under |parent|,
24 // offering certificates from |cert_request_info|. When the user has made a
25 // selection, the dialog will report back to |delegate|. If the dialog is
26 // closed with no selection, |delegate| will simply be destroyed.
27 void ShowSSLClientCertificateSelector(
28 content::WebContents
* contents
,
29 net::SSLCertRequestInfo
* cert_request_info
,
30 scoped_ptr
<content::ClientCertificateDelegate
> delegate
);
34 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_