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/ui/views/ssl_client_certificate_selector.h" | 5 #include "chrome/browser/ui/views/ssl_client_certificate_selector.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/certificate_viewer.h" | 11 #include "chrome/browser/certificate_viewer.h" |
12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
13 #include "chrome/browser/ui/views/constrained_window_views.h" | 13 #include "chrome/browser/ui/views/constrained_window_views.h" |
14 #include "content/browser/tab_contents/tab_contents.h" | 14 #include "content/browser/tab_contents/tab_contents.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "net/base/x509_certificate.h" | 17 #include "net/base/x509_certificate.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/models/table_model.h" | 19 #include "ui/base/models/table_model.h" |
20 #include "ui/base/models/table_model_observer.h" | 20 #include "ui/base/models/table_model_observer.h" |
21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
22 #include "views/controls/button/text_button.h" | 22 #include "views/controls/button/text_button.h" |
23 #include "views/controls/label.h" | 23 #include "views/controls/label.h" |
24 #include "views/controls/table/table_view.h" | 24 #include "views/controls/table/table_view.h" |
25 #include "views/layout/grid_layout.h" | 25 #include "views/layout/grid_layout.h" |
26 #include "views/layout/layout_constants.h" | 26 #include "views/layout/layout_constants.h" |
27 | 27 |
| 28 using content::BrowserThread; |
| 29 |
28 namespace { | 30 namespace { |
29 | 31 |
30 // The dimensions of the certificate selector table view, in pixels. | 32 // The dimensions of the certificate selector table view, in pixels. |
31 static const int kTableViewWidth = 400; | 33 static const int kTableViewWidth = 400; |
32 static const int kTableViewHeight = 100; | 34 static const int kTableViewHeight = 100; |
33 | 35 |
34 } // namespace | 36 } // namespace |
35 | 37 |
36 /////////////////////////////////////////////////////////////////////////////// | 38 /////////////////////////////////////////////////////////////////////////////// |
37 // CertificateSelectorTableModel: | 39 // CertificateSelectorTableModel: |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 net::SSLCertRequestInfo* cert_request_info, | 288 net::SSLCertRequestInfo* cert_request_info, |
287 SSLClientAuthHandler* delegate) { | 289 SSLClientAuthHandler* delegate) { |
288 DVLOG(1) << __FUNCTION__ << " " << wrapper; | 290 DVLOG(1) << __FUNCTION__ << " " << wrapper; |
289 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 291 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
290 (new SSLClientCertificateSelector(wrapper, | 292 (new SSLClientCertificateSelector(wrapper, |
291 cert_request_info, | 293 cert_request_info, |
292 delegate))->Init(); | 294 delegate))->Init(); |
293 } | 295 } |
294 | 296 |
295 } // namespace browser | 297 } // namespace browser |
OLD | NEW |