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

Side by Side Diff: content/browser/ssl/ssl_client_auth_handler.h

Issue 873723003: Follow-up changes to https://codereview.chromium.org/795773002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More compile fix Created 5 years, 11 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 CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_
6 #define CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ 6 #define CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Selects a certificate and resumes the URL request with that certificate. 37 // Selects a certificate and resumes the URL request with that certificate.
38 void SelectCertificate(); 38 void SelectCertificate();
39 39
40 private: 40 private:
41 class Core; 41 class Core;
42 42
43 // Called when |core_| is done retrieving the cert list. 43 // Called when |core_| is done retrieving the cert list.
44 void DidGetClientCerts(); 44 void DidGetClientCerts();
45 45
46 // Called when the user has selected a cert. 46 // Called when the user has selected a cert. If the user chose to continue
47 // with no certificate, |cert| is NULL.
47 void CertificateSelected(net::X509Certificate* cert); 48 void CertificateSelected(net::X509Certificate* cert);
48 49
49 // A reference-counted core so the ClientCertStore may outlive 50 // A reference-counted core so the ClientCertStore may outlive
50 // SSLClientAuthHandler if the handler is destroyed while an operation on the 51 // SSLClientAuthHandler if the handler is destroyed while an operation on the
51 // ClientCertStore is in progress. 52 // ClientCertStore is in progress.
52 scoped_refptr<Core> core_; 53 scoped_refptr<Core> core_;
53 54
54 // The net::URLRequest that triggered this client auth. 55 // The net::URLRequest that triggered this client auth.
55 net::URLRequest* request_; 56 net::URLRequest* request_;
56 57
57 // The certs to choose from. 58 // The certs to choose from.
58 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_; 59 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
59 60
60 // The callback to call when the certificate is selected. 61 // The callback to call when the certificate is selected.
61 CertificateCallback callback_; 62 CertificateCallback callback_;
62 63
63 base::WeakPtrFactory<SSLClientAuthHandler> weak_factory_; 64 base::WeakPtrFactory<SSLClientAuthHandler> weak_factory_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthHandler); 66 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthHandler);
66 }; 67 };
67 68
68 } // namespace content 69 } // namespace content
69 70
70 #endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ 71 #endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698