ladybird/Userland/Libraries/LibWeb/SecureContexts/AbstractOperations.h
Shannon Booth dc401f49ea LibWeb+LibURL: Move HTML::Origin to URL::Origin
While Origin is defined in the HTML spec - this leaves us with quite an
awkward relationship as the URL spec makes use of AO's from what is
defined in the HTML spec.

To simplify this factoring, relocate Origin into LibURL.
2024-10-05 10:46:30 +02:00

23 lines
486 B
C++

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