#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 {
const uint8_t kSubresourceFilterPublicKeySHA256[32] = …;
const char kSubresourceFilterSetFetcherManifestName[] = …;
const char
SubresourceFilterComponentInstallerPolicy::kManifestRulesetFormatKey[] = …;
const int SubresourceFilterComponentInstallerPolicy::kCurrentRulesetFormat = …;
SubresourceFilterComponentInstallerPolicy::
SubresourceFilterComponentInstallerPolicy() = default;
SubresourceFilterComponentInstallerPolicy::
~SubresourceFilterComponentInstallerPolicy() = default;
bool SubresourceFilterComponentInstallerPolicy::
SupportsGroupPolicyEnabledComponentUpdates() const { … }
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) { … }
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 { … }
std::string SubresourceFilterComponentInstallerPolicy::GetInstallerTag() { … }
update_client::InstallerAttributes
SubresourceFilterComponentInstallerPolicy::GetInstallerAttributes() const { … }
void RegisterSubresourceFilterComponent(ComponentUpdateService* cus) { … }
}