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

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

Issue 2838243002: Remove client_certs from SSLCertRequestInfo. (Closed)
Patch Set: revert stray whitespace change Created 3 years, 7 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ssl/ssl_client_auth_observer.h" 9 #include "chrome/browser/ssl/ssl_client_auth_observer.h"
10 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" 10 #include "chrome/browser/ssl/ssl_client_certificate_selector.h"
(...skipping 13 matching lines...) Expand all
24 class X509Certificate; 24 class X509Certificate;
25 } 25 }
26 26
27 class SSLClientCertificateSelector : public chrome::CertificateSelector, 27 class SSLClientCertificateSelector : public chrome::CertificateSelector,
28 public SSLClientAuthObserver, 28 public SSLClientAuthObserver,
29 public content::WebContentsObserver { 29 public content::WebContentsObserver {
30 public: 30 public:
31 SSLClientCertificateSelector( 31 SSLClientCertificateSelector(
32 content::WebContents* web_contents, 32 content::WebContents* web_contents,
33 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info, 33 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info,
34 net::CertificateList client_certs,
34 std::unique_ptr<content::ClientCertificateDelegate> delegate); 35 std::unique_ptr<content::ClientCertificateDelegate> delegate);
35 ~SSLClientCertificateSelector() override; 36 ~SSLClientCertificateSelector() override;
36 37
37 void Init(); 38 void Init();
38 39
39 // SSLClientAuthObserver: 40 // SSLClientAuthObserver:
40 void OnCertSelectedByNotification() override; 41 void OnCertSelectedByNotification() override;
41 42
42 // chrome::CertificateSelector: 43 // chrome::CertificateSelector:
43 void DeleteDelegate() override; 44 void DeleteDelegate() override;
44 bool Accept() override; 45 bool Accept() override;
45 46
46 // content::WebContentsObserver: 47 // content::WebContentsObserver:
47 void WebContentsDestroyed() override; 48 void WebContentsDestroyed() override;
48 49
49 private: 50 private:
50 // Callback after unlocking certificate slot. 51 // Callback after unlocking certificate slot.
51 void Unlocked(net::X509Certificate* cert); 52 void Unlocked(net::X509Certificate* cert);
52 53
53 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); 54 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector);
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ 57 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698