chromium/components/component_updater/installer_policies/plus_address_blocklist_component_installer.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =);

// The SHA256 of the SubjectPublicKeyInfo used to sign the extension.
// The extension id is: mcfcpknbdmljknapnofahjlmhmddmfkb
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) {}

}  // namespace

PlusAddressBlocklistInstallerPolicy::PlusAddressBlocklistInstallerPolicy() =
    default;

PlusAddressBlocklistInstallerPolicy::~PlusAddressBlocklistInstallerPolicy() =
    default;

bool PlusAddressBlocklistInstallerPolicy::
    SupportsGroupPolicyEnabledComponentUpdates() const {}

bool PlusAddressBlocklistInstallerPolicy::RequiresNetworkEncryption() const {}

update_client::CrxInstaller::Result
PlusAddressBlocklistInstallerPolicy::OnCustomInstall(
    const base::Value::Dict& /* manifest */,
    const base::FilePath& /* install_dir */) {}

void PlusAddressBlocklistInstallerPolicy::OnCustomUninstall() {}

void PlusAddressBlocklistInstallerPolicy::ComponentReady(
    const base::Version& version,
    const base::FilePath& install_dir,
    base::Value::Dict /* manifest */) {}

// Called during startup and installation before ComponentReady().
bool PlusAddressBlocklistInstallerPolicy::VerifyInstallation(
    const base::Value::Dict& /* manifest */,
    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) {}

}  // namespace component_updater