#include "chrome/browser/extensions/install_tracker.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/observer_list.h"
#include "chrome/browser/extensions/install_tracker_factory.h"
#include "components/prefs/pref_change_registrar.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/pref_names.h"
namespace extensions {
InstallTracker::InstallTracker(content::BrowserContext* browser_context,
ExtensionPrefs* prefs)
: … { … }
InstallTracker::~InstallTracker() { … }
InstallTracker* InstallTracker::Get(content::BrowserContext* context) { … }
void InstallTracker::AddObserver(InstallObserver* observer) { … }
void InstallTracker::RemoveObserver(InstallObserver* observer) { … }
const ActiveInstallData* InstallTracker::GetActiveInstall(
const std::string& extension_id) const { … }
void InstallTracker::AddActiveInstall(const ActiveInstallData& install_data) { … }
void InstallTracker::RemoveActiveInstall(const std::string& extension_id) { … }
void InstallTracker::OnBeginExtensionInstall(
const InstallObserver::ExtensionInstallParams& params) { … }
void InstallTracker::OnBeginExtensionDownload(const std::string& extension_id) { … }
void InstallTracker::OnDownloadProgress(const std::string& extension_id,
int percent_downloaded) { … }
void InstallTracker::OnBeginCrxInstall(const CrxInstaller& installer,
const std::string& extension_id) { … }
void InstallTracker::OnFinishCrxInstall(const CrxInstaller& installer,
const std::string& extension_id,
bool success) { … }
void InstallTracker::OnInstallFailure(
const std::string& extension_id) { … }
void InstallTracker::Shutdown() { … }
void InstallTracker::OnExtensionInstalled(
content::BrowserContext* browser_context,
const Extension* extension,
bool is_update) { … }
void InstallTracker::OnAppsReordered(
const std::optional<std::string>& extension_id) { … }
void InstallTracker::OnExtensionPrefChanged() { … }
}