AbstractOperations.h 1007 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Heap/GCPtr.h>
  8. #include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
  9. #include <LibWeb/HTML/Scripting/Environments.h>
  10. namespace Web::MixedContent {
  11. void upgrade_a_mixed_content_request_to_a_potentially_trustworthy_url_if_appropriate(Fetch::Infrastructure::Request&);
  12. enum class ProhibitsMixedSecurityContexts {
  13. ProhibitsMixedSecurityContexts,
  14. DoesNotRestrictMixedSecurityContexts,
  15. };
  16. ProhibitsMixedSecurityContexts does_settings_prohibit_mixed_security_contexts(JS::GCPtr<HTML::EnvironmentSettingsObject>);
  17. Fetch::Infrastructure::RequestOrResponseBlocking should_fetching_request_be_blocked_as_mixed_content(Fetch::Infrastructure::Request&);
  18. Fetch::Infrastructure::RequestOrResponseBlocking should_response_to_request_be_blocked_as_mixed_content(Fetch::Infrastructure::Request&, JS::NonnullGCPtr<Fetch::Infrastructure::Response>&);
  19. }