mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 04:07:51 +00:00
LibWeb: Remove unused VM from ReadLoopReadRequest
This commit is contained in:
parent
6b4b7a54de
commit
6cc5ac8f82
Notes:
github-actions[bot]
2025-04-30 13:31:31 +00:00
Author: https://github.com/trflynn89
Commit: 6cc5ac8f82
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4532
Reviewed-by: https://github.com/awesomekling ✅
2 changed files with 19 additions and 24 deletions
|
@ -49,18 +49,15 @@ public:
|
|||
// AD-HOC: callback triggered on every chunk received from the stream.
|
||||
using ChunkSteps = GC::Function<void(ByteBuffer)>;
|
||||
|
||||
ReadLoopReadRequest(JS::VM& vm, JS::Realm& realm, ReadableStreamDefaultReader& reader, GC::Ref<SuccessSteps> success_steps, GC::Ref<FailureSteps> failure_steps, GC::Ptr<ChunkSteps> chunk_steps = {});
|
||||
|
||||
virtual void on_chunk(JS::Value chunk) override;
|
||||
|
||||
virtual void on_close() override;
|
||||
|
||||
virtual void on_error(JS::Value error) override;
|
||||
|
||||
private:
|
||||
ReadLoopReadRequest(JS::Realm&, ReadableStreamDefaultReader&, GC::Ref<SuccessSteps>, GC::Ref<FailureSteps>, GC::Ptr<ChunkSteps> = {});
|
||||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
JS::VM& m_vm;
|
||||
virtual void on_chunk(JS::Value chunk) override;
|
||||
virtual void on_close() override;
|
||||
virtual void on_error(JS::Value error) override;
|
||||
|
||||
GC::Ref<JS::Realm> m_realm;
|
||||
GC::Ref<ReadableStreamDefaultReader> m_reader;
|
||||
ByteBuffer m_bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue