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

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

Issue 42773002: Get ClientCertStore through ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for comment #9 Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/ssl/client_cert_store.h ('k') | net/ssl/client_cert_store_impl_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 NET_SSL_CLIENT_CERT_STORE_IMPL_H_ 5 #ifndef NET_SSL_CLIENT_CERT_STORE_IMPL_H_
6 #define NET_SSL_CLIENT_CERT_STORE_IMPL_H_ 6 #define NET_SSL_CLIENT_CERT_STORE_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/ssl/client_cert_store.h" 11 #include "net/ssl/client_cert_store.h"
12 #include "net/ssl/ssl_cert_request_info.h" 12 #include "net/ssl/ssl_cert_request_info.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class NET_EXPORT ClientCertStoreImpl : public ClientCertStore { 16 class NET_EXPORT ClientCertStoreImpl : public ClientCertStore {
17 public: 17 public:
18 ClientCertStoreImpl() {} 18 ClientCertStoreImpl() {}
19 virtual ~ClientCertStoreImpl() {} 19 virtual ~ClientCertStoreImpl() {}
20 20
21 // ClientCertStore: 21 // ClientCertStore:
22 virtual bool GetClientCerts(const SSLCertRequestInfo& cert_request_info, 22 virtual void GetClientCerts(const SSLCertRequestInfo& cert_request_info,
23 CertificateList* selected_certs) OVERRIDE; 23 CertificateList* selected_certs,
24 const base::Closure& callback) OVERRIDE;
24 25
25 private: 26 private:
26 friend class ClientCertStoreImplTest; 27 friend class ClientCertStoreImplTest;
27 28
28 // A hook for testing. Filters |input_certs| using the logic being used to 29 // A hook for testing. Filters |input_certs| using the logic being used to
29 // filter the system store when GetClientCerts() is called. Depending on the 30 // filter the system store when GetClientCerts() is called. Depending on the
30 // implementation, this might be: 31 // implementation, this might be:
31 // - Implemented by creating a temporary in-memory store and filtering it 32 // - Implemented by creating a temporary in-memory store and filtering it
32 // using the common logic (preferable, currently on Windows). 33 // using the common logic (preferable, currently on Windows).
33 // - Implemented by creating a list of certificates that otherwise would be 34 // - Implemented by creating a list of certificates that otherwise would be
(...skipping 14 matching lines...) Expand all
48 const SSLCertRequestInfo& request, 49 const SSLCertRequestInfo& request,
49 CertificateList* selected_certs); 50 CertificateList* selected_certs);
50 #endif 51 #endif
51 52
52 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreImpl); 53 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreImpl);
53 }; 54 };
54 55
55 } // namespace net 56 } // namespace net
56 57
57 #endif // NET_SSL_CLIENT_CERT_STORE_IMPL_H_ 58 #endif // NET_SSL_CLIENT_CERT_STORE_IMPL_H_
OLDNEW
« no previous file with comments | « net/ssl/client_cert_store.h ('k') | net/ssl/client_cert_store_impl_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698