#include "chrome/browser/component_updater/crl_set_component_installer.h"
#include <memory>
#include <string>
#include <vector>
#include "base/containers/span.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/lazy_instance.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/task/thread_pool.h"
#include "base/threading/scoped_blocking_call.h"
#include "components/component_updater/component_installer.h"
#include "components/component_updater/component_updater_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/network_service_instance.h"
#include "net/cert/crl_set.h"
#include "net/ssl/ssl_config_service.h"
#include "services/cert_verifier/public/mojom/cert_verifier_service_factory.mojom.h"
namespace component_updater {
namespace {
const uint8_t kCrlSetPublicKeySHA256[32] = …;
const base::FilePath::CharType kCRLSetFile[] = …);
std::string LoadCRLSet(const base::FilePath& crl_path) { … }
class CRLSetData { … };
base::LazyInstance<CRLSetData>::Leaky g_crl_set_data = …;
void CRLSetData::ConfigureCertVerifierServiceFactory() { … }
void CRLSetData::UpdateCRLSetOnUI(const std::string& crl_set_bytes) { … }
}
CRLSetPolicy::CRLSetPolicy() = default;
CRLSetPolicy::~CRLSetPolicy() = default;
bool CRLSetPolicy::VerifyInstallation(const base::Value::Dict& manifest,
const base::FilePath& install_dir) const { … }
bool CRLSetPolicy::SupportsGroupPolicyEnabledComponentUpdates() const { … }
bool CRLSetPolicy::RequiresNetworkEncryption() const { … }
update_client::CrxInstaller::Result CRLSetPolicy::OnCustomInstall(
const base::Value::Dict& manifest,
const base::FilePath& install_dir) { … }
void CRLSetPolicy::OnCustomUninstall() { … }
void CRLSetPolicy::ComponentReady(const base::Version& version,
const base::FilePath& install_dir,
base::Value::Dict manifest) { … }
base::FilePath CRLSetPolicy::GetRelativeInstallDir() const { … }
void CRLSetPolicy::GetHash(std::vector<uint8_t>* hash) const { … }
std::string CRLSetPolicy::GetName() const { … }
update_client::InstallerAttributes CRLSetPolicy::GetInstallerAttributes()
const { … }
void RegisterCRLSetComponent(ComponentUpdateService* cus) { … }
}