OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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. |
| 4 |
| 5 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" |
| 6 |
| 7 #include "chrome/browser/ssl/ssl_client_auth_handler.h" |
| 8 #include "chrome/browser/ssl_client_certificate_selector.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents.h" |
| 10 |
| 11 TabContentsSSLHelper::TabContentsSSLHelper(TabContents* tab_contents) |
| 12 : tab_contents_(tab_contents) { |
| 13 } |
| 14 |
| 15 TabContentsSSLHelper::~TabContentsSSLHelper() { |
| 16 } |
| 17 |
| 18 void TabContentsSSLHelper::ShowClientCertificateRequestDialog( |
| 19 scoped_refptr<SSLClientAuthHandler> handler) { |
| 20 // Display the native certificate request dialog for each platform. |
| 21 browser::ShowSSLClientCertificateSelector( |
| 22 tab_contents_->GetMessageBoxRootWindow(), |
| 23 handler->cert_request_info(), handler); |
| 24 } |
OLD | NEW |