AbstractOperations.h 487 B

1234567891011121314151617181920212223
  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 <LibURL/Forward.h>
  9. #include <LibWeb/Forward.h>
  10. namespace Web::SecureContexts {
  11. enum class Trustworthiness {
  12. PotentiallyTrustworthy,
  13. NotTrustworthy,
  14. };
  15. [[nodiscard]] Trustworthiness is_origin_potentially_trustworthy(HTML::Origin const&);
  16. [[nodiscard]] Trustworthiness is_url_potentially_trustworthy(URL::URL const&);
  17. }