#include "chrome/browser/web_applications/commands/launch_web_app_command.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/functional/concurrent_closures.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/apps/app_service/app_launch_params.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/commands/web_app_command.h"
#include "chrome/browser/web_applications/locks/app_lock.h"
#include "chrome/browser/web_applications/os_integration/os_integration_test_override.h"
#include "chrome/browser/web_applications/proto/web_app_install_state.pb.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/browser/web_applications/web_app_registry_update.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "chrome/browser/web_applications/web_app_ui_manager.h"
#include "components/services/app_service/public/cpp/app_launch_util.h"
namespace web_app {
LaunchWebAppCommand::LaunchWebAppCommand(
Profile* profile,
WebAppProvider* provider,
apps::AppLaunchParams params,
LaunchWebAppWindowSetting launch_setting,
LaunchWebAppCallback callback)
: … { … }
LaunchWebAppCommand::~LaunchWebAppCommand() = default;
void LaunchWebAppCommand::StartWithLock(std::unique_ptr<AppLock> lock) { … }
void LaunchWebAppCommand::FirstRunServiceCompleted(bool success) { … }
void LaunchWebAppCommand::OnOsIntegrationSynchronized() { … }
void LaunchWebAppCommand::DoLaunch() { … }
void LaunchWebAppCommand::OnAppLaunched(
base::WeakPtr<Browser> browser,
base::WeakPtr<content::WebContents> web_contents,
apps::LaunchContainer container,
base::Value debug_value) { … }
}