#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_update_apply_task.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/json/values_util.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "base/types/expected.h"
#include "base/values.h"
#include "chrome/browser/profiles/keep_alive/scoped_profile_keep_alive.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_apply_update_command.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_url_info.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.h"
#include "components/keep_alive_registry/scoped_keep_alive.h"
namespace web_app {
IsolatedWebAppUpdateApplyTask::IsolatedWebAppUpdateApplyTask(
IsolatedWebAppUrlInfo url_info,
std::unique_ptr<ScopedKeepAlive> optional_keep_alive,
std::unique_ptr<ScopedProfileKeepAlive> optional_profile_keep_alive,
WebAppCommandScheduler& command_scheduler)
: … { … }
IsolatedWebAppUpdateApplyTask::~IsolatedWebAppUpdateApplyTask() = default;
void IsolatedWebAppUpdateApplyTask::Start(CompletionCallback callback) { … }
base::Value IsolatedWebAppUpdateApplyTask::AsDebugValue() const { … }
void IsolatedWebAppUpdateApplyTask::OnUpdateApplied(CompletionStatus result) { … }
}