mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb/IDB: Set the source of a IDBRequest
This commit is contained in:
parent
090ac66af1
commit
923927564d
Notes:
github-actions[bot]
2025-03-25 10:51:18 +00:00
Author: https://github.com/stelar7
Commit: 923927564d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4033
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 15 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
|
||||
* Copyright (c) 2024-2025, stelar7 <dudedbz@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -24,6 +24,8 @@ class IDBRequest : public DOM::EventTarget {
|
|||
public:
|
||||
virtual ~IDBRequest() override;
|
||||
|
||||
[[nodiscard]] static GC::Ref<IDBRequest> create(JS::Realm&, IDBRequestSource);
|
||||
|
||||
[[nodiscard]] bool done() const { return m_done; }
|
||||
[[nodiscard]] bool processed() const { return m_processed; }
|
||||
[[nodiscard]] IDBRequestSource source() const { return m_source; }
|
||||
|
@ -46,7 +48,7 @@ public:
|
|||
WebIDL::CallbackType* onerror();
|
||||
|
||||
protected:
|
||||
explicit IDBRequest(JS::Realm&);
|
||||
explicit IDBRequest(JS::Realm&, IDBRequestSource);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Visitor& visitor) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue