#ifndef CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_DIALOG_UTILS_H_
#define CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_DIALOG_UTILS_H_
#include "base/functional/callback_forward.h"
#include "chrome/browser/ui/web_applications/web_app_dialogs.h"
#include "chrome/browser/web_applications/web_app_install_manager.h"
#include "components/webapps/common/web_app_id.h"
class Browser;
class Profile;
namespace content {
class WebContents;
}
namespace webapps {
enum class WebappInstallSource;
enum class InstallResultCode;
}
namespace web_app {
enum class WebAppInstallFlow;
bool CanCreateWebApp(const Browser* browser);
bool CanPopOutWebApp(Profile* profile);
WebAppInstalledCallback;
void CreateWebAppFromCurrentWebContents(Browser* browser,
WebAppInstallFlow flow);
bool CreateWebAppFromManifest(
content::WebContents* web_contents,
webapps::WebappInstallSource install_source,
WebAppInstalledCallback installed_callback,
PwaInProductHelpState iph_state = PwaInProductHelpState::kNotShown);
void SetInstalledCallbackForTesting(WebAppInstalledCallback callback);
}
#endif