2022-10-13 19:08:39 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-10-13 19:09:14 +02:00
|
|
|
#include <AK/Forward.h>
|
2024-03-18 16:22:27 +13:00
|
|
|
#include <LibURL/Forward.h>
|
2022-10-13 19:08:39 +02:00
|
|
|
#include <LibWeb/Forward.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::SecureContexts {
|
|
|
|
|
|
|
|
|
|
enum class Trustworthiness {
|
|
|
|
|
PotentiallyTrustworthy,
|
|
|
|
|
NotTrustworthy,
|
|
|
|
|
};
|
|
|
|
|
|
2024-10-05 15:33:34 +13:00
|
|
|
[[nodiscard]] Trustworthiness is_origin_potentially_trustworthy(URL::Origin const&);
|
2024-03-18 16:22:27 +13:00
|
|
|
[[nodiscard]] Trustworthiness is_url_potentially_trustworthy(URL::URL const&);
|
2022-10-13 19:08:39 +02:00
|
|
|
|
|
|
|
|
}
|