#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/component_updater/ssl_error_assistant_component_installer.h"
#include <memory>
#include <utility>
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/task/thread_pool.h"
#include "components/security_interstitials/content/ssl_error_assistant.h"
#include "components/security_interstitials/content/ssl_error_handler.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
ComponentUpdateService;
namespace {
const base::FilePath::CharType kConfigBinaryPbFileName[] = …);
const uint8_t kSslErrorAssistantPublicKeySHA256[32] = …;
void LoadProtoFromDisk(const base::FilePath& pb_path) { … }
}
namespace component_updater {
bool SSLErrorAssistantComponentInstallerPolicy::
SupportsGroupPolicyEnabledComponentUpdates() const { … }
bool SSLErrorAssistantComponentInstallerPolicy::RequiresNetworkEncryption()
const { … }
update_client::CrxInstaller::Result
SSLErrorAssistantComponentInstallerPolicy::OnCustomInstall(
const base::Value::Dict& manifest,
const base::FilePath& install_dir) { … }
void SSLErrorAssistantComponentInstallerPolicy::OnCustomUninstall() { … }
base::FilePath SSLErrorAssistantComponentInstallerPolicy::GetInstalledPath(
const base::FilePath& base) { … }
void SSLErrorAssistantComponentInstallerPolicy::ComponentReady(
const base::Version& version,
const base::FilePath& install_dir,
base::Value::Dict manifest) { … }
bool SSLErrorAssistantComponentInstallerPolicy::VerifyInstallation(
const base::Value::Dict& manifest,
const base::FilePath& install_dir) const { … }
base::FilePath
SSLErrorAssistantComponentInstallerPolicy::GetRelativeInstallDir() const { … }
void SSLErrorAssistantComponentInstallerPolicy::GetHash(
std::vector<uint8_t>* hash) const { … }
std::string SSLErrorAssistantComponentInstallerPolicy::GetName() const { … }
update_client::InstallerAttributes
SSLErrorAssistantComponentInstallerPolicy::GetInstallerAttributes() const { … }
void RegisterSSLErrorAssistantComponent(ComponentUpdateService* cus) { … }
}