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 #ifndef CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | |
13 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
14 #include "chrome/browser/ssl/ssl_client_auth_observer.h" | 13 #include "chrome/browser/ssl/ssl_client_auth_observer.h" |
15 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" | 14 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" |
16 #include "ui/views/controls/button/button.h" | 15 #include "ui/views/controls/button/button.h" |
17 #include "ui/views/controls/table/table_view_observer.h" | 16 #include "ui/views/controls/table/table_view_observer.h" |
18 #include "ui/views/view.h" | |
19 #include "ui/views/window/dialog_delegate.h" | 17 #include "ui/views/window/dialog_delegate.h" |
20 | 18 |
21 // This header file exists only for testing. Chrome should access the | 19 // This header file exists only for testing. Chrome should access the |
22 // certificate selector only through the cross-platform interface | 20 // certificate selector only through the cross-platform interface |
23 // chrome/browser/ssl_client_certificate_selector.h. | 21 // chrome/browser/ssl_client_certificate_selector.h. |
24 | 22 |
25 namespace net { | 23 namespace net { |
26 class SSLCertRequestInfo; | 24 class SSLCertRequestInfo; |
27 class X509Certificate; | 25 class X509Certificate; |
28 } | 26 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 private: | 74 private: |
77 void CreateCertTable(); | 75 void CreateCertTable(); |
78 | 76 |
79 // Callback after unlocking certificate slot. | 77 // Callback after unlocking certificate slot. |
80 void Unlocked(net::X509Certificate* cert); | 78 void Unlocked(net::X509Certificate* cert); |
81 | 79 |
82 scoped_ptr<CertificateSelectorTableModel> model_; | 80 scoped_ptr<CertificateSelectorTableModel> model_; |
83 | 81 |
84 content::WebContents* web_contents_; | 82 content::WebContents* web_contents_; |
85 | 83 |
86 views::Widget* window_; | |
87 views::TableView* table_; | 84 views::TableView* table_; |
88 views::LabelButton* view_cert_button_; | 85 views::LabelButton* view_cert_button_; |
89 | 86 |
90 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); | 87 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); |
91 }; | 88 }; |
92 | 89 |
93 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
OLD | NEW |