1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibWeb: Implement 'Is origin potentially trustworthy?' AO

This commit is contained in:
Linus Groh 2022-10-13 19:08:39 +02:00
parent 58ad6de954
commit d56a6eb508
3 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/*
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Forward.h>
namespace Web::SecureContexts {
enum class Trustworthiness {
PotentiallyTrustworthy,
NotTrustworthy,
};
[[nodiscard]] Trustworthiness is_origin_potentially_trustworthy(HTML::Origin const&);
}