mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
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
29 lines
553 B
C++
29 lines
553 B
C++
/*
|
|
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/DOM/EventTarget.h>
|
|
|
|
namespace Web::MediaSourceExtensions {
|
|
|
|
// https://w3c.github.io/media-source/#dom-sourcebuffer
|
|
class SourceBuffer : public DOM::EventTarget {
|
|
WEB_PLATFORM_OBJECT(SourceBuffer, DOM::EventTarget);
|
|
GC_DECLARE_ALLOCATOR(SourceBuffer);
|
|
|
|
protected:
|
|
SourceBuffer(JS::Realm&);
|
|
|
|
virtual ~SourceBuffer() override;
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
private:
|
|
};
|
|
|
|
}
|