MacViews: Get c/b/ui/views/tabs to build on Mac
[chromium-blink-merge.git] / chrome / browser / ssl / ssl_client_certificate_selector.h
blob1a33c0598d21894425978ba7487671fed39508bd
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"
10 namespace content {
11 class WebContents;
14 namespace net {
15 class SSLCertRequestInfo;
16 class X509Certificate;
19 namespace chrome {
21 typedef base::Callback<void(net::X509Certificate*)> SelectCertificateCallback;
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 |callback|. |callback| is notified
26 // when the dialog closes in call cases; if the user cancels the dialog, we call
27 // with a NULL certificate.
28 void ShowSSLClientCertificateSelector(
29 content::WebContents* contents,
30 net::SSLCertRequestInfo* cert_request_info,
31 const SelectCertificateCallback& callback);
33 } // namespace chrome
35 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_CERTIFICATE_SELECTOR_H_