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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const net::HttpNetworkSession* network_session, | 43 const net::HttpNetworkSession* network_session, |
44 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info, | 44 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info, |
45 const chrome::SelectCertificateCallback& callback); | 45 const chrome::SelectCertificateCallback& callback); |
46 virtual ~SSLClientCertificateSelector(); | 46 virtual ~SSLClientCertificateSelector(); |
47 | 47 |
48 void Init(); | 48 void Init(); |
49 | 49 |
50 net::X509Certificate* GetSelectedCert() const; | 50 net::X509Certificate* GetSelectedCert() const; |
51 | 51 |
52 // SSLClientAuthObserver implementation: | 52 // SSLClientAuthObserver implementation: |
53 virtual void OnCertSelectedByNotification() OVERRIDE; | 53 virtual void OnCertSelectedByNotification() override; |
54 | 54 |
55 // DialogDelegateView: | 55 // DialogDelegateView: |
56 virtual bool CanResize() const OVERRIDE; | 56 virtual bool CanResize() const override; |
57 virtual base::string16 GetWindowTitle() const OVERRIDE; | 57 virtual base::string16 GetWindowTitle() const override; |
58 virtual void DeleteDelegate() OVERRIDE; | 58 virtual void DeleteDelegate() override; |
59 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | 59 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const override; |
60 virtual bool Cancel() OVERRIDE; | 60 virtual bool Cancel() override; |
61 virtual bool Accept() OVERRIDE; | 61 virtual bool Accept() override; |
62 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 62 virtual views::View* GetInitiallyFocusedView() override; |
63 virtual views::View* CreateExtraView() OVERRIDE; | 63 virtual views::View* CreateExtraView() override; |
64 virtual ui::ModalType GetModalType() const OVERRIDE; | 64 virtual ui::ModalType GetModalType() const override; |
65 | 65 |
66 // views::ButtonListener: | 66 // views::ButtonListener: |
67 virtual void ButtonPressed(views::Button* sender, | 67 virtual void ButtonPressed(views::Button* sender, |
68 const ui::Event& event) OVERRIDE; | 68 const ui::Event& event) override; |
69 | 69 |
70 // views::TableViewObserver: | 70 // views::TableViewObserver: |
71 virtual void OnSelectionChanged() OVERRIDE; | 71 virtual void OnSelectionChanged() override; |
72 virtual void OnDoubleClick() OVERRIDE; | 72 virtual void OnDoubleClick() override; |
73 | 73 |
74 private: | 74 private: |
75 void CreateCertTable(); | 75 void CreateCertTable(); |
76 | 76 |
77 // Callback after unlocking certificate slot. | 77 // Callback after unlocking certificate slot. |
78 void Unlocked(net::X509Certificate* cert); | 78 void Unlocked(net::X509Certificate* cert); |
79 | 79 |
80 scoped_ptr<CertificateSelectorTableModel> model_; | 80 scoped_ptr<CertificateSelectorTableModel> model_; |
81 | 81 |
82 content::WebContents* web_contents_; | 82 content::WebContents* web_contents_; |
83 | 83 |
84 views::TableView* table_; | 84 views::TableView* table_; |
85 views::LabelButton* view_cert_button_; | 85 views::LabelButton* view_cert_button_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); | 87 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); |
88 }; | 88 }; |
89 | 89 |
90 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
OLD | NEW |