mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibWeb: Add the IDL for the GenericTransformStream mixin
This commit is contained in:
parent
5a2260a0bc
commit
35ba7c7e00
Notes:
github-actions[bot]
2024-11-17 22:22:14 +00:00
Author: https://github.com/trflynn89
Commit: 35ba7c7e00
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2370
4 changed files with 78 additions and 0 deletions
30
Libraries/LibWeb/Streams/GenericTransformStream.h
Normal file
30
Libraries/LibWeb/Streams/GenericTransformStream.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue