mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-01 22:00:58 +00:00
31 lines
639 B
C
31 lines
639 B
C
|
|
/*
|
||
|
|
* 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;
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|