mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
f87041bf3a
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
26 lines
552 B
C++
26 lines
552 B
C++
/*
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGC/Ptr.h>
|
|
#include <LibJS/Runtime/Realm.h>
|
|
#include <LibWeb/Forward.h>
|
|
|
|
namespace Web::Bindings {
|
|
|
|
struct HostDefined : public JS::Realm::HostDefined {
|
|
explicit HostDefined(GC::Ref<Intrinsics> intrinsics)
|
|
: intrinsics(intrinsics)
|
|
{
|
|
}
|
|
virtual ~HostDefined() override = default;
|
|
virtual void visit_edges(JS::Cell::Visitor& visitor) override;
|
|
|
|
GC::Ref<Intrinsics> intrinsics;
|
|
};
|
|
|
|
}
|