#include "chrome/browser/web_applications/web_app_install_manager.h"
#include <iterator>
#include <memory>
#include <utility>
#include "base/feature_list.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/observer_list.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/install_bounce_metric.h"
#include "chrome/browser/web_applications/web_app_command_manager.h"
#include "chrome/browser/web_applications/web_app_constants.h"
#include "chrome/browser/web_applications/web_app_install_manager_observer.h"
#include "chrome/browser/web_applications/web_app_internals_utils.h"
#include "chrome/browser/web_applications/web_app_utils.h"
#include "chrome/common/chrome_features.h"
#include "components/webapps/browser/installable/installable_metrics.h"
namespace web_app {
namespace {
constexpr char kWebAppInstallManagerName[] = …;
}
WebAppInstallManager::WebAppInstallManager(Profile* profile)
: … { … }
WebAppInstallManager::~WebAppInstallManager() { … }
void WebAppInstallManager::Start() { … }
void WebAppInstallManager::Shutdown() { … }
void WebAppInstallManager::TakeCommandErrorLog(
base::PassKey<WebAppCommandManager>,
base::Value::Dict log) { … }
void WebAppInstallManager::MaybeWriteErrorLog() { … }
void WebAppInstallManager::OnWriteErrorLog(Result result) { … }
void WebAppInstallManager::OnReadErrorLog(Result result,
base::Value error_log) { … }
void WebAppInstallManager::LogErrorObject(base::Value::Dict object) { … }
void WebAppInstallManager::AddObserver(WebAppInstallManagerObserver* observer) { … }
void WebAppInstallManager::RemoveObserver(
WebAppInstallManagerObserver* observer) { … }
void WebAppInstallManager::NotifyWebAppInstalled(const webapps::AppId& app_id) { … }
void WebAppInstallManager::NotifyWebAppInstalledWithOsHooks(
const webapps::AppId& app_id) { … }
void WebAppInstallManager::NotifyWebAppSourceRemoved(
const webapps::AppId& app_id) { … }
void WebAppInstallManager::NotifyWebAppUninstalled(
const webapps::AppId& app_id,
webapps::WebappUninstallSource uninstall_source) { … }
void WebAppInstallManager::NotifyWebAppManifestUpdated(
const webapps::AppId& app_id) { … }
void WebAppInstallManager::NotifyWebAppWillBeUninstalled(
const webapps::AppId& app_id) { … }
void WebAppInstallManager::NotifyWebAppInstallManagerDestroyed() { … }
}