#ifndef CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
#define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
#include "base/functional/callback.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/apps/app_service/app_launch_params.h"
#include "components/services/app_service/public/cpp/app_launch_util.h"
#include "url/gurl.h"
class Browser;
class Profile;
namespace base {
class CommandLine;
class FilePath;
}
namespace content {
class WebContents;
}
namespace extensions {
class Extension;
}
enum class WindowOpenDisposition;
void OpenApplicationWithReenablePrompt(Profile* profile,
apps::AppLaunchParams&& params);
content::WebContents* OpenApplication(Profile* profile,
apps::AppLaunchParams&& params);
Browser* CreateApplicationWindow(Profile* profile,
const apps::AppLaunchParams& params,
const GURL& url);
content::WebContents* NavigateApplicationWindow(
Browser* browser,
const apps::AppLaunchParams& params,
const GURL& url,
WindowOpenDisposition disposition);
content::WebContents* OpenApplicationWindow(Profile* profile,
const apps::AppLaunchParams& params,
const GURL& url);
content::WebContents* OpenAppShortcutWindow(Profile* profile,
const GURL& url);
bool CanLaunchViaEvent(const extensions::Extension* extension);
void LaunchAppWithCallback(
Profile* profile,
const std::string& app_id,
const base::CommandLine& command_line,
const base::FilePath& current_directory,
base::OnceCallback<void(Browser* browser, apps::LaunchContainer container)>
callback);
#if BUILDFLAG(IS_CHROMEOS_LACROS)
bool ShowBrowserForProfile(Profile* profile,
const apps::AppLaunchParams& params);
#endif
#endif