mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +00:00
26 lines
912 B
C++
26 lines
912 B
C++
/*
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGC/Function.h>
|
|
#include <LibGC/Ptr.h>
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
|
#include <LibWeb/WebIDL/Promise.h>
|
|
|
|
namespace Web::Streams {
|
|
|
|
using SizeAlgorithm = GC::Function<JS::Completion(JS::Value)>;
|
|
using PullAlgorithm = GC::Function<GC::Ref<WebIDL::Promise>()>;
|
|
using CancelAlgorithm = GC::Function<GC::Ref<WebIDL::Promise>(JS::Value)>;
|
|
using StartAlgorithm = GC::Function<WebIDL::ExceptionOr<JS::Value>()>;
|
|
using AbortAlgorithm = GC::Function<GC::Ref<WebIDL::Promise>(JS::Value)>;
|
|
using CloseAlgorithm = GC::Function<GC::Ref<WebIDL::Promise>()>;
|
|
using WriteAlgorithm = GC::Function<GC::Ref<WebIDL::Promise>(JS::Value)>;
|
|
using FlushAlgorithm = GC::Function<GC::Ref<WebIDL::Promise>()>;
|
|
using TransformAlgorithm = GC::Function<GC::Ref<WebIDL::Promise>(JS::Value)>;
|
|
|
|
}
|