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

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

Issue 42773002: Get ClientCertStore through ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for comments #4 and #5 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
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_H_ 5 #ifndef NET_SSL_CLIENT_CERT_STORE_H_
6 #define NET_SSL_CLIENT_CERT_STORE_H_ 6 #define NET_SSL_CLIENT_CERT_STORE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h"
9 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
10 #include "net/cert/x509_certificate.h" 11 #include "net/cert/x509_certificate.h"
11 12
12 namespace net { 13 namespace net {
13 14
14 class SSLCertRequestInfo; 15 class SSLCertRequestInfo;
15 16
17 // The caller is expected to keep the ClientCertStore alive until the callback
18 // supplied to GetClientCerts has been run.
16 class NET_EXPORT ClientCertStore { 19 class NET_EXPORT ClientCertStore {
17 public: 20 public:
18 virtual ~ClientCertStore() {} 21 virtual ~ClientCertStore() {}
19 22
20 virtual bool GetClientCerts(const SSLCertRequestInfo& cert_request_info, 23 // Get client certs matching the |cert_request_info|. The |callback| may be
21 CertificateList* selected_certs) = 0; 24 // called sychronously.
25 virtual void GetClientCerts(const SSLCertRequestInfo& cert_request_info,
26 CertificateList* selected_certs,
27 const base::Closure& callback) = 0;
wtc 2013/10/28 19:41:12 Nit: If I only look at this interface and its comm
mattm 2013/10/28 23:56:16 Expanded the comment
22 protected: 28 protected:
23 ClientCertStore() {} 29 ClientCertStore() {}
24 30
25 private: 31 private:
26 DISALLOW_COPY_AND_ASSIGN(ClientCertStore); 32 DISALLOW_COPY_AND_ASSIGN(ClientCertStore);
27 }; 33 };
28 34
29 } // namespace net 35 } // namespace net
30 36
31 #endif // NET_SSL_CLIENT_CERT_STORE_H_ 37 #endif // NET_SSL_CLIENT_CERT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698