SourceSnapshotParams.h 748 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/PolicyContainers.h>
  8. #include <LibWeb/HTML/SandboxingFlagSet.h>
  9. namespace Web::HTML {
  10. // https://html.spec.whatwg.org/multipage/browsing-the-web.html#source-snapshot-params
  11. struct SourceSnapshotParams {
  12. // a boolean
  13. bool has_transient_activation;
  14. // a sandboxing flag set
  15. SandboxingFlagSet sandboxing_flags = {};
  16. // a boolean
  17. bool allows_downloading;
  18. // an environment settings object, only to be used as a request client
  19. JS::GCPtr<EnvironmentSettingsObject> fetch_client;
  20. // a policy container
  21. PolicyContainer source_policy_container;
  22. };
  23. }