chromium/chrome/browser/component_updater/subresource_filter_component_installer.cc

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

#include "chrome/browser/component_updater/subresource_filter_component_installer.h"

#include <optional>
#include <utility>

#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/path_service.h"
#include "base/values.h"
#include "base/version.h"
#include "chrome/browser/browser_process.h"
#include "components/component_updater/component_updater_paths.h"
#include "components/subresource_filter/content/shared/browser/ruleset_service.h"
#include "components/subresource_filter/core/browser/subresource_filter_constants.h"
#include "components/subresource_filter/core/browser/subresource_filter_features.h"
#include "components/subresource_filter/core/common/constants.h"

ComponentUpdateService;

namespace component_updater {

// The extension id is: gcmjkmgdlgnkkcocmoeiminaijmmjnii
const uint8_t kSubresourceFilterPublicKeySHA256[32] =;

const char kSubresourceFilterSetFetcherManifestName[] =;

// static
const char
    SubresourceFilterComponentInstallerPolicy::kManifestRulesetFormatKey[] =;

// static
const int SubresourceFilterComponentInstallerPolicy::kCurrentRulesetFormat =;

SubresourceFilterComponentInstallerPolicy::
    SubresourceFilterComponentInstallerPolicy() = default;

SubresourceFilterComponentInstallerPolicy::
    ~SubresourceFilterComponentInstallerPolicy() = default;

bool SubresourceFilterComponentInstallerPolicy::
    SupportsGroupPolicyEnabledComponentUpdates() const {}

// Public data is delivered via this component, no need for encryption.
bool SubresourceFilterComponentInstallerPolicy::RequiresNetworkEncryption()
    const {}

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

void SubresourceFilterComponentInstallerPolicy::OnCustomUninstall() {}

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

// Called during startup and installation before ComponentReady().
bool SubresourceFilterComponentInstallerPolicy::VerifyInstallation(
    const base::Value::Dict& manifest,
    const base::FilePath& install_dir) const {}

base::FilePath
SubresourceFilterComponentInstallerPolicy::GetRelativeInstallDir() const {}

void SubresourceFilterComponentInstallerPolicy::GetHash(
    std::vector<uint8_t>* hash) const {}

std::string SubresourceFilterComponentInstallerPolicy::GetName() const {}

// static
std::string SubresourceFilterComponentInstallerPolicy::GetInstallerTag() {}

update_client::InstallerAttributes
SubresourceFilterComponentInstallerPolicy::GetInstallerAttributes() const {}

void RegisterSubresourceFilterComponent(ComponentUpdateService* cus) {}

}  // namespace component_updater