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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 class CertificateSelectorTableModel; | 34 class CertificateSelectorTableModel; |
35 | 35 |
36 class SSLClientCertificateSelector : public SSLClientAuthObserver, | 36 class SSLClientCertificateSelector : public SSLClientAuthObserver, |
37 public views::DialogDelegateView, | 37 public views::DialogDelegateView, |
38 public views::ButtonListener, | 38 public views::ButtonListener, |
39 public views::TableViewObserver { | 39 public views::TableViewObserver { |
40 public: | 40 public: |
41 SSLClientCertificateSelector( | 41 SSLClientCertificateSelector( |
42 content::WebContents* web_contents, | 42 content::WebContents* web_contents, |
43 const net::HttpNetworkSession* network_session, | |
44 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info, | 43 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info, |
45 const chrome::SelectCertificateCallback& callback); | 44 const chrome::SelectCertificateCallback& callback); |
46 virtual ~SSLClientCertificateSelector(); | 45 virtual ~SSLClientCertificateSelector(); |
47 | 46 |
48 void Init(); | 47 void Init(); |
49 | 48 |
50 net::X509Certificate* GetSelectedCert() const; | 49 net::X509Certificate* GetSelectedCert() const; |
51 | 50 |
52 // SSLClientAuthObserver implementation: | 51 // SSLClientAuthObserver implementation: |
53 virtual void OnCertSelectedByNotification() OVERRIDE; | 52 virtual void OnCertSelectedByNotification() OVERRIDE; |
(...skipping 27 matching lines...) Expand all Loading... |
81 | 80 |
82 content::WebContents* web_contents_; | 81 content::WebContents* web_contents_; |
83 | 82 |
84 views::TableView* table_; | 83 views::TableView* table_; |
85 views::LabelButton* view_cert_button_; | 84 views::LabelButton* view_cert_button_; |
86 | 85 |
87 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); | 86 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); |
88 }; | 87 }; |
89 | 88 |
90 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
OLD | NEW |