Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: chrome/browser/tab_contents/tab_contents_ssl_helper.cc

Issue 2823038: Refactor SSLClientAuthHandler and certificate selection (Closed)
Patch Set: Rebase the patch Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/tab_contents_ssl_helper.cc
diff --git a/chrome/browser/tab_contents/tab_contents_ssl_helper.cc b/chrome/browser/tab_contents/tab_contents_ssl_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0f00d1e22cb6b3202dfa557847a60f3c72120f01
--- /dev/null
+++ b/chrome/browser/tab_contents/tab_contents_ssl_helper.cc
@@ -0,0 +1,24 @@
+// 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.
+
+#include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
+
+#include "chrome/browser/ssl/ssl_client_auth_handler.h"
+#include "chrome/browser/ssl_client_certificate_selector.h"
+#include "chrome/browser/tab_contents/tab_contents.h"
+
+TabContentsSSLHelper::TabContentsSSLHelper(TabContents* tab_contents)
+ : tab_contents_(tab_contents) {
+}
+
+TabContentsSSLHelper::~TabContentsSSLHelper() {
+}
+
+void TabContentsSSLHelper::ShowClientCertificateRequestDialog(
+ scoped_refptr<SSLClientAuthHandler> handler) {
+ // Display the native certificate request dialog for each platform.
+ browser::ShowSSLClientCertificateSelector(
+ tab_contents_->GetMessageBoxRootWindow(),
+ handler->cert_request_info(), handler);
+}
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_ssl_helper.h ('k') | chrome/browser/views/ssl_client_certificate_selector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698