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

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

Issue 10540100: TabContentsWrapper -> TabContents, part 48. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
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 ConstrainedWindow;
37 class TabContents; 37 class TabContents;
38 typedef TabContents TabContentsWrapper;
39 38
40 class SSLClientCertificateSelector : public SSLClientAuthObserver, 39 class SSLClientCertificateSelector : public SSLClientAuthObserver,
41 public views::DialogDelegateView, 40 public views::DialogDelegateView,
42 public views::ButtonListener, 41 public views::ButtonListener,
43 public views::TableViewObserver { 42 public views::TableViewObserver {
44 public: 43 public:
45 SSLClientCertificateSelector( 44 SSLClientCertificateSelector(
46 TabContentsWrapper* wrapper, 45 TabContents* tab_contents,
47 const net::HttpNetworkSession* network_session, 46 const net::HttpNetworkSession* network_session,
48 net::SSLCertRequestInfo* cert_request_info, 47 net::SSLCertRequestInfo* cert_request_info,
49 const base::Callback<void(net::X509Certificate*)>& callback); 48 const base::Callback<void(net::X509Certificate*)>& callback);
50 virtual ~SSLClientCertificateSelector(); 49 virtual ~SSLClientCertificateSelector();
51 50
52 void Init(); 51 void Init();
53 52
54 net::X509Certificate* GetSelectedCert() const; 53 net::X509Certificate* GetSelectedCert() const;
55 54
56 // SSLClientAuthObserver implementation: 55 // SSLClientAuthObserver implementation:
(...skipping 17 matching lines...) Expand all
74 // views::TableViewObserver: 73 // views::TableViewObserver:
75 virtual void OnSelectionChanged() OVERRIDE; 74 virtual void OnSelectionChanged() OVERRIDE;
76 virtual void OnDoubleClick() OVERRIDE; 75 virtual void OnDoubleClick() OVERRIDE;
77 76
78 private: 77 private:
79 void CreateCertTable(); 78 void CreateCertTable();
80 void CreateViewCertButton(); 79 void CreateViewCertButton();
81 80
82 scoped_ptr<CertificateSelectorTableModel> model_; 81 scoped_ptr<CertificateSelectorTableModel> model_;
83 82
84 TabContentsWrapper* wrapper_; 83 TabContents* tab_contents_;
85 84
86 ConstrainedWindow* window_; 85 ConstrainedWindow* window_;
87 views::TableView* table_; 86 views::TableView* table_;
88 views::TextButton* view_cert_button_; 87 views::TextButton* view_cert_button_;
89 views::View* view_cert_button_container_; 88 views::View* view_cert_button_container_;
90 89
91 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); 90 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector);
92 }; 91 };
93 92
94 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ 93 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/select_file_dialog_extension.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