QueuingStrategy.h 421 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Optional.h>
  8. #include <LibJS/Heap/GCPtr.h>
  9. #include <LibWeb/WebIDL/CallbackType.h>
  10. namespace Web::Streams {
  11. // https://streams.spec.whatwg.org/#dictdef-queuingstrategy
  12. struct QueuingStrategy {
  13. Optional<double> high_water_mark;
  14. JS::GCPtr<WebIDL::CallbackType> size;
  15. };
  16. }