mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-07 09:31:53 +00:00
LibGC+Everywhere: Factor out a LibGC from LibJS
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
This commit is contained in:
parent
ce23efc5f6
commit
f87041bf3a
Notes:
github-actions[bot]
2024-11-15 13:50:17 +00:00
Author: https://github.com/shannonbooth
Commit: f87041bf3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2345
1722 changed files with 9939 additions and 9906 deletions
|
@ -7,30 +7,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <LibGC/CellAllocator.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Heap/CellAllocator.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Fetching {
|
||||
|
||||
class FetchedDataReceiver final : public JS::Cell {
|
||||
JS_CELL(FetchedDataReceiver, JS::Cell);
|
||||
JS_DECLARE_ALLOCATOR(FetchedDataReceiver);
|
||||
GC_CELL(FetchedDataReceiver, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(FetchedDataReceiver);
|
||||
|
||||
public:
|
||||
virtual ~FetchedDataReceiver() override;
|
||||
|
||||
void set_pending_promise(JS::NonnullGCPtr<WebIDL::Promise>);
|
||||
void set_pending_promise(GC::Ref<WebIDL::Promise>);
|
||||
void on_data_received(ReadonlyBytes);
|
||||
|
||||
private:
|
||||
FetchedDataReceiver(JS::NonnullGCPtr<Infrastructure::FetchParams const>, JS::NonnullGCPtr<Streams::ReadableStream>);
|
||||
FetchedDataReceiver(GC::Ref<Infrastructure::FetchParams const>, GC::Ref<Streams::ReadableStream>);
|
||||
|
||||
virtual void visit_edges(Visitor& visitor) override;
|
||||
|
||||
JS::NonnullGCPtr<Infrastructure::FetchParams const> m_fetch_params;
|
||||
JS::NonnullGCPtr<Streams::ReadableStream> m_stream;
|
||||
JS::GCPtr<WebIDL::Promise> m_pending_promise;
|
||||
GC::Ref<Infrastructure::FetchParams const> m_fetch_params;
|
||||
GC::Ref<Streams::ReadableStream> m_stream;
|
||||
GC::Ptr<WebIDL::Promise> m_pending_promise;
|
||||
ByteBuffer m_buffer;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue