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

Side by Side Diff: net/ssl/client_cert_store_nss.h

Issue 663043004: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 NET_SSL_CLIENT_CERT_STORE_NSS_H_ 5 #ifndef NET_SSL_CLIENT_CERT_STORE_NSS_H_
6 #define NET_SSL_CLIENT_CERT_STORE_NSS_H_ 6 #define NET_SSL_CLIENT_CERT_STORE_NSS_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/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/ssl/client_cert_store.h" 12 #include "net/ssl/client_cert_store.h"
13 #include "net/ssl/ssl_cert_request_info.h" 13 #include "net/ssl/ssl_cert_request_info.h"
14 14
15 typedef struct CERTCertListStr CERTCertList; 15 typedef struct CERTCertListStr CERTCertList;
16 16
17 namespace crypto { 17 namespace crypto {
18 class CryptoModuleBlockingPasswordDelegate; 18 class CryptoModuleBlockingPasswordDelegate;
19 } 19 }
20 20
21 namespace net { 21 namespace net {
22 22
23 class NET_EXPORT ClientCertStoreNSS : public ClientCertStore { 23 class NET_EXPORT ClientCertStoreNSS : public ClientCertStore {
24 public: 24 public:
25 typedef base::Callback<crypto::CryptoModuleBlockingPasswordDelegate*( 25 typedef base::Callback<crypto::CryptoModuleBlockingPasswordDelegate*(
26 const HostPortPair& /* server */)> PasswordDelegateFactory; 26 const HostPortPair& /* server */)> PasswordDelegateFactory;
27 27
28 explicit ClientCertStoreNSS( 28 explicit ClientCertStoreNSS(
29 const PasswordDelegateFactory& password_delegate_factory); 29 const PasswordDelegateFactory& password_delegate_factory);
30 virtual ~ClientCertStoreNSS(); 30 ~ClientCertStoreNSS() override;
31 31
32 // ClientCertStore: 32 // ClientCertStore:
33 virtual void GetClientCerts(const SSLCertRequestInfo& cert_request_info, 33 void GetClientCerts(const SSLCertRequestInfo& cert_request_info,
34 CertificateList* selected_certs, 34 CertificateList* selected_certs,
35 const base::Closure& callback) override; 35 const base::Closure& callback) override;
36 36
37 protected: 37 protected:
38 // Examines the certificates in |cert_list| to find all certificates that 38 // Examines the certificates in |cert_list| to find all certificates that
39 // match the client certificate request in |request|, storing the matching 39 // match the client certificate request in |request|, storing the matching
40 // certificates in |selected_certs|. 40 // certificates in |selected_certs|.
41 // If |query_nssdb| is true, NSS will be queried to construct full certificate 41 // If |query_nssdb| is true, NSS will be queried to construct full certificate
42 // chains. If it is false, only the certificate will be considered. 42 // chains. If it is false, only the certificate will be considered.
43 virtual void GetClientCertsImpl(CERTCertList* cert_list, 43 virtual void GetClientCertsImpl(CERTCertList* cert_list,
44 const SSLCertRequestInfo& request, 44 const SSLCertRequestInfo& request,
45 bool query_nssdb, 45 bool query_nssdb,
(...skipping 20 matching lines...) Expand all
66 // The factory for creating the delegate for requesting a password to a 66 // The factory for creating the delegate for requesting a password to a
67 // PKCS #11 token. May be null. 67 // PKCS #11 token. May be null.
68 PasswordDelegateFactory password_delegate_factory_; 68 PasswordDelegateFactory password_delegate_factory_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreNSS); 70 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreNSS);
71 }; 71 };
72 72
73 } // namespace net 73 } // namespace net
74 74
75 #endif // NET_SSL_CLIENT_CERT_STORE_NSS_H_ 75 #endif // NET_SSL_CLIENT_CERT_STORE_NSS_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_websocket_stream_unittest.cc ('k') | net/test/embedded_test_server/embedded_test_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698