#include "chrome/browser/enterprise/client_certificates/certificate_provisioning_service_factory.h"
#include <memory>
#include <utility>
#include "base/memory/scoped_refptr.h"
#include "base/no_destructor.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/enterprise/client_certificates/certificate_store_factory.h"
#include "chrome/browser/enterprise/client_certificates/profile_context_delegate.h"
#include "chrome/browser/enterprise/core/dependency_factory_impl.h"
#include "chrome/browser/enterprise/identifiers/profile_id_service_factory.h"
#include "chrome/browser/net/profile_network_context_service_factory.h"
#include "chrome/browser/policy/chrome_browser_policy_connector.h"
#include "chrome/browser/profiles/profile.h"
#include "components/enterprise/browser/identifiers/profile_id_service.h"
#include "components/enterprise/client_certificates/core/certificate_provisioning_service.h"
#include "components/enterprise/client_certificates/core/certificate_store.h"
#include "components/enterprise/client_certificates/core/cloud_management_delegate.h"
#include "components/enterprise/client_certificates/core/dm_server_client.h"
#include "components/enterprise/client_certificates/core/features.h"
#include "components/enterprise/client_certificates/core/key_upload_client.h"
#include "components/enterprise/client_certificates/core/profile_cloud_management_delegate.h"
#include "components/enterprise/core/dependency_factory.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/policy/core/browser/browser_policy_connector.h"
#include "components/policy/core/common/cloud/device_management_service.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
namespace client_certificates {
namespace {
ProfileSelections BuildCertificateProvisioningProfileSelections() { … }
policy::DeviceManagementService* GetDeviceManagementService() { … }
}
CertificateProvisioningServiceFactory*
CertificateProvisioningServiceFactory::GetInstance() { … }
CertificateProvisioningService*
CertificateProvisioningServiceFactory::GetForProfile(Profile* profile) { … }
CertificateProvisioningServiceFactory::CertificateProvisioningServiceFactory()
: … { … }
CertificateProvisioningServiceFactory::
~CertificateProvisioningServiceFactory() = default;
bool CertificateProvisioningServiceFactory::ServiceIsCreatedWithBrowserContext()
const { … }
bool CertificateProvisioningServiceFactory::ServiceIsNULLWhileTesting() const { … }
std::unique_ptr<KeyedService>
CertificateProvisioningServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
}