LibWeb/Streams: Move "set up transform stream" to TransformStream

This is not marked as an AO in the spec, and is a publically exported
API exposed on TransformStream.
This commit is contained in:
Shannon Booth 2024-12-08 17:35:07 +13:00 committed by Jelle Raaijmakers
commit 19bbfb023a
Notes: github-actions[bot] 2024-12-11 14:12:37 +00:00
7 changed files with 84 additions and 82 deletions

View file

@ -9,6 +9,7 @@
#include <LibJS/Forward.h>
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Streams/Algorithms.h>
#include <LibWeb/Streams/QueuingStrategy.h>
#include <LibWeb/WebIDL/Promise.h>
@ -40,6 +41,8 @@ public:
GC::Ptr<TransformStreamDefaultController> controller() const { return m_controller; }
void set_controller(GC::Ptr<TransformStreamDefaultController> value) { m_controller = value; }
void set_up(GC::Ref<TransformAlgorithm>, GC::Ptr<FlushAlgorithm> = {}, GC::Ptr<CancelAlgorithm> = {});
private:
explicit TransformStream(JS::Realm& realm);