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 "ui/views/controls/table/table_view.h" |
22 #include "ui/views/layout/grid_layout.h" | 23 #include "ui/views/layout/grid_layout.h" |
23 #include "ui/views/layout/layout_constants.h" | 24 #include "ui/views/layout/layout_constants.h" |
24 #include "views/controls/button/text_button.h" | 25 #include "views/controls/button/text_button.h" |
25 #include "views/controls/label.h" | 26 #include "views/controls/label.h" |
26 #include "views/controls/table/table_view.h" | |
27 | 27 |
28 using content::BrowserThread; | 28 using content::BrowserThread; |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // The dimensions of the certificate selector table view, in pixels. | 32 // The dimensions of the certificate selector table view, in pixels. |
33 static const int kTableViewWidth = 400; | 33 static const int kTableViewWidth = 400; |
34 static const int kTableViewHeight = 100; | 34 static const int kTableViewHeight = 100; |
35 | 35 |
36 } // namespace | 36 } // namespace |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 net::SSLCertRequestInfo* cert_request_info, | 288 net::SSLCertRequestInfo* cert_request_info, |
289 SSLClientAuthHandler* delegate) { | 289 SSLClientAuthHandler* delegate) { |
290 DVLOG(1) << __FUNCTION__ << " " << wrapper; | 290 DVLOG(1) << __FUNCTION__ << " " << wrapper; |
291 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 291 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
292 (new SSLClientCertificateSelector(wrapper, | 292 (new SSLClientCertificateSelector(wrapper, |
293 cert_request_info, | 293 cert_request_info, |
294 delegate))->Init(); | 294 delegate))->Init(); |
295 } | 295 } |
296 | 296 |
297 } // namespace browser | 297 } // namespace browser |
OLD | NEW |