| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_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> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/browser/tab_contents/tab_contents.h" | 23 #include "content/browser/tab_contents/tab_contents.h" |
| 24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
| 25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
| 26 #include "net/base/x509_certificate.h" | 26 #include "net/base/x509_certificate.h" |
| 27 #include "ui/base/gtk/gtk_hig_constants.h" | 27 #include "ui/base/gtk/gtk_hig_constants.h" |
| 28 #include "ui/base/gtk/gtk_signal.h" | 28 #include "ui/base/gtk/gtk_signal.h" |
| 29 #include "ui/base/gtk/owned_widget_gtk.h" | 29 #include "ui/base/gtk/owned_widget_gtk.h" |
| 30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
| 31 #include "ui/gfx/native_widget_types.h" | 31 #include "ui/gfx/native_widget_types.h" |
| 32 | 32 |
| 33 using content::BrowserThread; |
| 34 |
| 33 namespace { | 35 namespace { |
| 34 | 36 |
| 35 enum { | 37 enum { |
| 36 RESPONSE_SHOW_CERT_INFO = 1, | 38 RESPONSE_SHOW_CERT_INFO = 1, |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 /////////////////////////////////////////////////////////////////////////////// | 41 /////////////////////////////////////////////////////////////////////////////// |
| 40 // SSLClientCertificateSelector | 42 // SSLClientCertificateSelector |
| 41 | 43 |
| 42 class SSLClientCertificateSelector : public SSLClientAuthObserver, | 44 class SSLClientCertificateSelector : public SSLClientAuthObserver, |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 TabContentsWrapper* wrapper, | 403 TabContentsWrapper* wrapper, |
| 402 net::SSLCertRequestInfo* cert_request_info, | 404 net::SSLCertRequestInfo* cert_request_info, |
| 403 SSLClientAuthHandler* delegate) { | 405 SSLClientAuthHandler* delegate) { |
| 404 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 406 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 405 (new SSLClientCertificateSelector(wrapper, | 407 (new SSLClientCertificateSelector(wrapper, |
| 406 cert_request_info, | 408 cert_request_info, |
| 407 delegate))->Show(); | 409 delegate))->Show(); |
| 408 } | 410 } |
| 409 | 411 |
| 410 } // namespace browser | 412 } // namespace browser |
| OLD | NEW |