Set spliced LOAD segment's memsz equal to filesz.
[chromium-blink-merge.git] / net / ssl / client_cert_store.h
blobfe050e5f0993b8cf17b309f4000130693df9ad24
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
3 // found in the LICENSE file.
5 #ifndef NET_SSL_CLIENT_CERT_STORE_H_
6 #define NET_SSL_CLIENT_CERT_STORE_H_
8 #include "base/basictypes.h"
9 #include "base/callback_forward.h"
10 #include "net/base/net_export.h"
11 #include "net/cert/x509_certificate.h"
13 namespace net {
15 class SSLCertRequestInfo;
17 // The caller is expected to keep the ClientCertStore alive until the callback
18 // supplied to GetClientCerts has been run.
19 class NET_EXPORT ClientCertStore {
20 public:
21 virtual ~ClientCertStore() {}
23 // Get client certs matching the |cert_request_info|. On completion, the
24 // results will be stored in |selected_certs| and the |callback| will be run.
25 // The |callback| may be called sychronously. The caller must ensure the
26 // ClientCertStore and the |selected_certs| object remain alive until the
27 // callback has been run.
28 virtual void GetClientCerts(const SSLCertRequestInfo& cert_request_info,
29 CertificateList* selected_certs,
30 const base::Closure& callback) = 0;
31 protected:
32 ClientCertStore() {}
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ClientCertStore);
38 } // namespace net
40 #endif // NET_SSL_CLIENT_CERT_STORE_H_