#include "chrome/browser/enterprise/signals/client_certificate_fetcher.h"
#include <memory>
#include <utility>
#include "chrome/browser/enterprise/util/managed_browser_utils.h"
#include "chrome/browser/net/profile_network_context_service.h"
#include "chrome/browser/net/profile_network_context_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "components/device_signals/core/common/signals_features.h"
#include "net/cert/cert_database.h"
#include "net/ssl/client_cert_identity.h"
#include "net/ssl/client_cert_store.h"
#include "net/ssl/ssl_cert_request_info.h"
namespace enterprise_signals {
class ProfileNetworkContextServiceWrapperImpl
: public ProfileNetworkContextServiceWrapper { … };
ClientCertificateFetcher::ClientCertificateFetcher(
std::unique_ptr<ProfileNetworkContextServiceWrapper>
profile_network_context_service_wrapper,
Profile* profile)
: … { … }
ClientCertificateFetcher::~ClientCertificateFetcher() = default;
std::unique_ptr<ClientCertificateFetcher> ClientCertificateFetcher::Create(
content::BrowserContext* browser_context) { … }
void ClientCertificateFetcher::FetchAutoSelectedCertificateForUrl(
const GURL& url,
FetchAutoSelectedCertificateForUrlCallback callback) { … }
void ClientCertificateFetcher::OnGetClientCertsComplete(
const GURL& url,
net::ClientCertIdentityList client_certs) { … }
}