#include "components/enterprise/client_certificates/core/private_key_factory.h"
#include <array>
#include "base/functional/callback.h"
#include "base/memory/weak_ptr.h"
#include "components/enterprise/client_certificates/core/private_key.h"
namespace client_certificates {
PrivateKeyFactory::PrivateKeyFactory() = default;
PrivateKeyFactory::~PrivateKeyFactory() = default;
class PrivateKeyFactoryImpl : public PrivateKeyFactory { … };
PrivateKeyFactoryImpl::PrivateKeyFactoryImpl(
PrivateKeyFactory::PrivateKeyFactoriesMap sub_factories)
: … { … }
PrivateKeyFactoryImpl::~PrivateKeyFactoryImpl() = default;
void PrivateKeyFactoryImpl::CreatePrivateKey(
PrivateKeyFactory::PrivateKeyCallback callback) { … }
void PrivateKeyFactoryImpl::LoadPrivateKey(
const client_certificates_pb::PrivateKey& serialized_private_key,
PrivateKeyCallback callback) { … }
void PrivateKeyFactoryImpl::OnPrivateKeyCreated(
PrivateKeySource source,
PrivateKeyCallback callback,
scoped_refptr<PrivateKey> private_key) { … }
std::unique_ptr<PrivateKeyFactory> PrivateKeyFactory::Create(
PrivateKeyFactoriesMap sub_factories) { … }
}