#include "components/component_updater/installer_policies/plus_address_blocklist_component_installer.h"
#include <memory>
#include <optional>
#include <vector>
#include "base/feature_list.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/task/thread_pool.h"
#include "base/values.h"
#include "components/plus_addresses/features.h"
#include "components/plus_addresses/plus_address_blocklist_data.h"
namespace component_updater {
namespace {
const base::FilePath::CharType kPlusAddressBlocklistBinaryPbFileName[] = …);
constexpr std::array<uint8_t, 32> kPlusAddressBlocklistPublicKeySHA256 = …;
base::FilePath GetInstalledPath(const base::FilePath& base) { … }
std::optional<std::string> LoadPlusAddressBlocklistFromDisk(
const base::FilePath& pb_path) { … }
void PopulatePlusAddressBlocklistData(const base::FilePath& pb_path,
std::optional<std::string> binary_pb) { … }
}
PlusAddressBlocklistInstallerPolicy::PlusAddressBlocklistInstallerPolicy() =
default;
PlusAddressBlocklistInstallerPolicy::~PlusAddressBlocklistInstallerPolicy() =
default;
bool PlusAddressBlocklistInstallerPolicy::
SupportsGroupPolicyEnabledComponentUpdates() const { … }
bool PlusAddressBlocklistInstallerPolicy::RequiresNetworkEncryption() const { … }
update_client::CrxInstaller::Result
PlusAddressBlocklistInstallerPolicy::OnCustomInstall(
const base::Value::Dict& ,
const base::FilePath& ) { … }
void PlusAddressBlocklistInstallerPolicy::OnCustomUninstall() { … }
void PlusAddressBlocklistInstallerPolicy::ComponentReady(
const base::Version& version,
const base::FilePath& install_dir,
base::Value::Dict ) { … }
bool PlusAddressBlocklistInstallerPolicy::VerifyInstallation(
const base::Value::Dict& ,
const base::FilePath& install_dir) const { … }
base::FilePath PlusAddressBlocklistInstallerPolicy::GetRelativeInstallDir()
const { … }
void PlusAddressBlocklistInstallerPolicy::GetHash(
std::vector<uint8_t>* hash) const { … }
std::string PlusAddressBlocklistInstallerPolicy::GetName() const { … }
update_client::InstallerAttributes
PlusAddressBlocklistInstallerPolicy::GetInstallerAttributes() const { … }
void RegisterPlusAddressBlocklistComponent(ComponentUpdateService* cus) { … }
}