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 |
(...skipping 15 matching lines...) Expand all Loading... |
26 class SSLCertRequestInfo; | 26 class SSLCertRequestInfo; |
27 class X509Certificate; | 27 class X509Certificate; |
28 } | 28 } |
29 | 29 |
30 namespace views { | 30 namespace views { |
31 class TableView; | 31 class TableView; |
32 class TextButton; | 32 class TextButton; |
33 } | 33 } |
34 | 34 |
35 class CertificateSelectorTableModel; | 35 class CertificateSelectorTableModel; |
36 class ConstrainedWindow; | 36 class WebContentsModalDialog; |
37 | 37 |
38 class SSLClientCertificateSelector : public SSLClientAuthObserver, | 38 class SSLClientCertificateSelector : public SSLClientAuthObserver, |
39 public views::DialogDelegateView, | 39 public views::DialogDelegateView, |
40 public views::ButtonListener, | 40 public views::ButtonListener, |
41 public views::TableViewObserver { | 41 public views::TableViewObserver { |
42 public: | 42 public: |
43 SSLClientCertificateSelector( | 43 SSLClientCertificateSelector( |
44 content::WebContents* web_contents, | 44 content::WebContents* web_contents, |
45 const net::HttpNetworkSession* network_session, | 45 const net::HttpNetworkSession* network_session, |
46 net::SSLCertRequestInfo* cert_request_info, | 46 net::SSLCertRequestInfo* cert_request_info, |
(...skipping 28 matching lines...) Expand all Loading... |
75 virtual void OnDoubleClick() OVERRIDE; | 75 virtual void OnDoubleClick() OVERRIDE; |
76 | 76 |
77 private: | 77 private: |
78 void CreateCertTable(); | 78 void CreateCertTable(); |
79 void CreateViewCertButton(); | 79 void CreateViewCertButton(); |
80 | 80 |
81 scoped_ptr<CertificateSelectorTableModel> model_; | 81 scoped_ptr<CertificateSelectorTableModel> model_; |
82 | 82 |
83 content::WebContents* web_contents_; | 83 content::WebContents* web_contents_; |
84 | 84 |
85 ConstrainedWindow* window_; | 85 WebContentsModalDialog* window_; |
86 views::TableView* table_; | 86 views::TableView* table_; |
87 views::TextButton* view_cert_button_; | 87 views::TextButton* view_cert_button_; |
88 views::View* view_cert_button_container_; | 88 views::View* view_cert_button_container_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); | 90 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); |
91 }; | 91 }; |
92 | 92 |
93 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 93 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
OLD | NEW |