AbstractOperations.h 458 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Forward.h>
  8. #include <LibWeb/Forward.h>
  9. namespace Web::SecureContexts {
  10. enum class Trustworthiness {
  11. PotentiallyTrustworthy,
  12. NotTrustworthy,
  13. };
  14. [[nodiscard]] Trustworthiness is_origin_potentially_trustworthy(HTML::Origin const&);
  15. [[nodiscard]] Trustworthiness is_url_potentially_trustworthy(AK::URL const&);
  16. }