#include "extensions/browser/updater/extension_installer.h"
#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "components/update_client/update_client_errors.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/common/extension_id.h"
namespace extensions {
namespace {
InstallError;
Result;
}
ExtensionInstaller::ExtensionInstaller(
ExtensionId extension_id,
const base::FilePath& extension_root,
bool install_immediately,
ExtensionInstallerCallback extension_installer_callback)
: … { … }
void ExtensionInstaller::OnUpdateError(int error) { … }
void ExtensionInstaller::Install(
const base::FilePath& unpack_path,
const std::string& public_key,
std::unique_ptr<InstallParams> ,
ProgressCallback ,
UpdateClientCallback update_client_callback) { … }
bool ExtensionInstaller::GetInstalledFile(const std::string& file,
base::FilePath* installed_file) { … }
bool ExtensionInstaller::Uninstall() { … }
ExtensionInstaller::~ExtensionInstaller() = default;
}