#ifndef NET_SSL_CLIENT_CERT_STORE_H_
#define NET_SSL_CLIENT_CERT_STORE_H_
#include "base/functional/callback_forward.h"
#include "base/memory/scoped_refptr.h"
#include "net/base/net_export.h"
#include "net/cert/x509_certificate.h"
#include "net/ssl/client_cert_identity.h"
namespace net {
class SSLCertRequestInfo;
class NET_EXPORT ClientCertStore {
public:
ClientCertStore(const ClientCertStore&) = delete;
ClientCertStore& operator=(const ClientCertStore&) = delete;
virtual ~ClientCertStore() = default;
using ClientCertListCallback =
base::OnceCallback<void(ClientCertIdentityList)>;
virtual void GetClientCerts(
scoped_refptr<const SSLCertRequestInfo> cert_request_info,
ClientCertListCallback callback) = 0;
protected:
ClientCertStore() = default;
};
}
#endif