1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

LibWeb: Add some const overloads in ReadableByteStreamController

This commit is contained in:
Shannon Booth 2023-11-19 12:00:02 +13:00 committed by Andreas Kling
parent 26e393fbbc
commit 8d4095d00e

View file

@ -76,6 +76,7 @@ class ReadableByteStreamController : public Bindings::PlatformObject {
public:
virtual ~ReadableByteStreamController() override = default;
JS::GCPtr<ReadableStreamBYOBRequest const> byob_request() const { return m_byob_request; }
JS::GCPtr<ReadableStreamBYOBRequest> byob_request() { return m_byob_request; }
void set_byob_request(JS::GCPtr<ReadableStreamBYOBRequest> request) { m_byob_request = request; }
@ -102,6 +103,7 @@ public:
void set_pulling(bool value) { m_pulling = value; }
SinglyLinkedList<PullIntoDescriptor>& pending_pull_intos() { return m_pending_pull_intos; }
SinglyLinkedList<PullIntoDescriptor> const& pending_pull_intos() const { return m_pending_pull_intos; }
SinglyLinkedList<ReadableByteStreamQueueEntry>& queue() { return m_queue; }