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