chromium/chrome/browser/web_applications/isolated_web_apps/check_isolated_web_app_bundle_installability_command.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_WEB_APPLICATIONS_ISOLATED_WEB_APPS_CHECK_ISOLATED_WEB_APP_BUNDLE_INSTALLABILITY_COMMAND_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_ISOLATED_WEB_APPS_CHECK_ISOLATED_WEB_APP_BUNDLE_INSTALLABILITY_COMMAND_H_

#include <memory>
#include <string>

#include "base/functional/callback_forward.h"
#include "base/version.h"
#include "chrome/browser/web_applications/commands/web_app_command.h"
#include "chrome/browser/web_applications/isolated_web_apps/signed_web_bundle_metadata.h"
#include "chrome/browser/web_applications/locks/app_lock.h"

class Profile;

namespace web_app {

enum class IsolatedInstallabilityCheckResult {};

// Checks the registrar for Isolated Web App installability given the
// |bundle_metadata|.
class CheckIsolatedWebAppBundleInstallabilityCommand
    : public WebAppCommand<AppLock,
                           IsolatedInstallabilityCheckResult,
                           std::optional<base::Version>> {};

}  // namespace web_app

#endif  // CHROME_BROWSER_WEB_APPLICATIONS_ISOLATED_WEB_APPS_CHECK_ISOLATED_WEB_APP_BUNDLE_INSTALLABILITY_COMMAND_H_