Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Side by Side Diff: chrome/browser/ui/views/ssl_client_certificate_selector.h

Issue 680133002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
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 scoped_refptr<net::SSLCertRequestInfo>& cert_request_info, 43 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info,
44 const chrome::SelectCertificateCallback& callback); 44 const chrome::SelectCertificateCallback& callback);
45 virtual ~SSLClientCertificateSelector(); 45 ~SSLClientCertificateSelector() override;
46 46
47 void Init(); 47 void Init();
48 48
49 net::X509Certificate* GetSelectedCert() const; 49 net::X509Certificate* GetSelectedCert() const;
50 50
51 // SSLClientAuthObserver implementation: 51 // SSLClientAuthObserver implementation:
52 virtual void OnCertSelectedByNotification() override; 52 void OnCertSelectedByNotification() override;
53 53
54 // DialogDelegateView: 54 // DialogDelegateView:
55 virtual bool CanResize() const override; 55 bool CanResize() const override;
56 virtual base::string16 GetWindowTitle() const override; 56 base::string16 GetWindowTitle() const override;
57 virtual void DeleteDelegate() override; 57 void DeleteDelegate() override;
58 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const override; 58 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
59 virtual bool Cancel() override; 59 bool Cancel() override;
60 virtual bool Accept() override; 60 bool Accept() override;
61 virtual views::View* GetInitiallyFocusedView() override; 61 views::View* GetInitiallyFocusedView() override;
62 virtual views::View* CreateExtraView() override; 62 views::View* CreateExtraView() override;
63 virtual ui::ModalType GetModalType() const override; 63 ui::ModalType GetModalType() const override;
64 64
65 // views::ButtonListener: 65 // views::ButtonListener:
66 virtual void ButtonPressed(views::Button* sender, 66 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
67 const ui::Event& event) override;
68 67
69 // views::TableViewObserver: 68 // views::TableViewObserver:
70 virtual void OnSelectionChanged() override; 69 void OnSelectionChanged() override;
71 virtual void OnDoubleClick() override; 70 void OnDoubleClick() override;
72 71
73 private: 72 private:
74 void CreateCertTable(); 73 void CreateCertTable();
75 74
76 // Callback after unlocking certificate slot. 75 // Callback after unlocking certificate slot.
77 void Unlocked(net::X509Certificate* cert); 76 void Unlocked(net::X509Certificate* cert);
78 77
79 scoped_ptr<CertificateSelectorTableModel> model_; 78 scoped_ptr<CertificateSelectorTableModel> model_;
80 79
81 content::WebContents* web_contents_; 80 content::WebContents* web_contents_;
82 81
83 views::TableView* table_; 82 views::TableView* table_;
84 views::LabelButton* view_cert_button_; 83 views::LabelButton* view_cert_button_;
85 84
86 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); 85 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector);
87 }; 86 };
88 87
89 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ 88 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/simple_message_box_views.cc ('k') | chrome/browser/ui/views/ssl_client_certificate_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698