LibWeb: Add the IDL for the GenericTransformStream mixin

This commit is contained in:
Timothy Flynn 2024-11-15 07:32:57 -05:00 committed by Andreas Kling
commit 35ba7c7e00
Notes: github-actions[bot] 2024-11-17 22:22:14 +00:00
4 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,30 @@
/*
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGC/Cell.h>
#include <LibGC/Ptr.h>
#include <LibWeb/Forward.h>
namespace Web::Streams {
class GenericTransformStreamMixin {
public:
virtual ~GenericTransformStreamMixin();
GC::Ref<ReadableStream> readable();
GC::Ref<WritableStream> writable();
protected:
explicit GenericTransformStreamMixin(GC::Ref<TransformStream>);
void visit_edges(GC::Cell::Visitor&);
// https://streams.spec.whatwg.org/#generictransformstream-transform
GC::Ref<TransformStream> m_transform;
};
}