#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/component_updater/hyphenation_component_installer.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/no_destructor.h"
#include "base/task/sequenced_task_runner.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
ComponentUpdateService;
namespace {
constexpr uint8_t kHyphenationPublicKeySHA256[32] = …;
constexpr char kHyphenationManifestName[] = …;
constexpr base::FilePath::CharType kHyphenationRelativeInstallDir[] = …);
class HyphenationDirectory { … };
}
namespace component_updater {
HyphenationComponentInstallerPolicy::HyphenationComponentInstallerPolicy() =
default;
HyphenationComponentInstallerPolicy::~HyphenationComponentInstallerPolicy() =
default;
bool HyphenationComponentInstallerPolicy::
SupportsGroupPolicyEnabledComponentUpdates() const { … }
bool HyphenationComponentInstallerPolicy::RequiresNetworkEncryption() const { … }
update_client::CrxInstaller::Result
HyphenationComponentInstallerPolicy::OnCustomInstall(
const base::Value::Dict& manifest,
const base::FilePath& install_dir) { … }
void HyphenationComponentInstallerPolicy::OnCustomUninstall() { … }
void HyphenationComponentInstallerPolicy::ComponentReady(
const base::Version& version,
const base::FilePath& install_dir,
base::Value::Dict manifest) { … }
bool HyphenationComponentInstallerPolicy::VerifyInstallation(
const base::Value::Dict& manifest,
const base::FilePath& install_dir) const { … }
base::FilePath HyphenationComponentInstallerPolicy::GetRelativeInstallDir()
const { … }
void HyphenationComponentInstallerPolicy::GetHash(
std::vector<uint8_t>* hash) const { … }
std::string HyphenationComponentInstallerPolicy::GetName() const { … }
update_client::InstallerAttributes
HyphenationComponentInstallerPolicy::GetInstallerAttributes() const { … }
void HyphenationComponentInstallerPolicy::GetHyphenationDictionary(
base::OnceCallback<void(const base::FilePath&)> callback) { … }
void RegisterHyphenationComponent(ComponentUpdateService* cus) { … }
}