| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ssl_client_certificate_selector.h" | 5 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/i18n/time_formatting.h" | 13 #include "base/i18n/time_formatting.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 return; | 379 return; |
| 380 gtk_widget_set_can_default(select_button_, TRUE); | 380 gtk_widget_set_can_default(select_button_, TRUE); |
| 381 gtk_widget_grab_default(select_button_); | 381 gtk_widget_grab_default(select_button_); |
| 382 } | 382 } |
| 383 | 383 |
| 384 } // namespace | 384 } // namespace |
| 385 | 385 |
| 386 namespace chrome { | 386 namespace chrome { |
| 387 | 387 |
| 388 void ShowSSLClientCertificateSelector( | 388 void ShowSSLClientCertificateSelector( |
| 389 TabContents* tab_contents, | 389 content::WebContents* contents, |
| 390 const net::HttpNetworkSession* network_session, | 390 const net::HttpNetworkSession* network_session, |
| 391 net::SSLCertRequestInfo* cert_request_info, | 391 net::SSLCertRequestInfo* cert_request_info, |
| 392 const base::Callback<void(net::X509Certificate*)>& callback) { | 392 const base::Callback<void(net::X509Certificate*)>& callback) { |
| 393 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 393 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 394 TabContents* tab_contents = TabContents::FromWebContents(contents); |
| 394 (new SSLClientCertificateSelector( | 395 (new SSLClientCertificateSelector( |
| 395 tab_contents, network_session, cert_request_info, callback))->Show(); | 396 tab_contents, network_session, cert_request_info, callback))->Show(); |
| 396 } | 397 } |
| 397 | 398 |
| 398 } // namespace chrome | 399 } // namespace chrome |
| OLD | NEW |