#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_validator.h"
#include <optional>
#include <string>
#include <utility>
#include "base/functional/callback.h"
#include "base/strings/stringprintf.h"
#include "base/types/expected.h"
#include "base/types/expected_macros.h"
#include "chrome/browser/web_applications/isolated_web_apps/error/unusable_swbn_file_error.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_trust_checker.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_url_info.h"
#include "chrome/common/url_constants.h"
#include "components/web_package/signed_web_bundles/identity_validator.h"
#include "components/web_package/signed_web_bundles/signed_web_bundle_id.h"
#include "components/web_package/signed_web_bundles/signed_web_bundle_integrity_block.h"
#include "url/gurl.h"
#include "url/url_constants.h"
namespace web_app {
IsolatedWebAppValidator::IsolatedWebAppValidator() = default;
IsolatedWebAppValidator::~IsolatedWebAppValidator() = default;
base::expected<void, std::string>
IsolatedWebAppValidator::ValidateIntegrityBlock(
const web_package::SignedWebBundleId& expected_web_bundle_id,
const web_package::SignedWebBundleIntegrityBlock& integrity_block,
bool dev_mode,
const IsolatedWebAppTrustChecker& trust_checker) { … }
base::expected<void, UnusableSwbnFileError>
IsolatedWebAppValidator::ValidateMetadata(
const web_package::SignedWebBundleId& web_bundle_id,
const std::optional<GURL>& primary_url,
const std::vector<GURL>& entries) { … }
}