summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl_client_certificate_selector.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ssl_client_certificate_selector.h')
-rw-r--r--chrome/browser/ssl_client_certificate_selector.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/browser/ssl_client_certificate_selector.h b/chrome/browser/ssl_client_certificate_selector.h
new file mode 100644
index 0000000..8a12a70
--- /dev/null
+++ b/chrome/browser/ssl_client_certificate_selector.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
+#define CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
+
+#include "gfx/native_widget_types.h"
+
+class SSLClientAuthHandler;
+
+namespace net {
+class SSLCertRequestInfo;
+}
+
+namespace browser {
+
+// Opens an SSL client certificate selection dialog under |parent|, offering
+// certificates from |cert_request_info|. When the user has made a selection,
+// the dialog will report back to |delegate|. |delegate| is notified when the
+// dialog closes in call cases; if the user cancels the dialog, we call with a
+// NULL certificate.
+void ShowSSLClientCertificateSelector(
+ gfx::NativeWindow parent,
+ net::SSLCertRequestInfo* cert_request_info,
+ SSLClientAuthHandler* delegate);
+
+} // namespace browser
+
+#endif // CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_