mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb/IDB: Add some debug output
This commit is contained in:
parent
4084a127de
commit
6ec914c7f7
Notes:
github-actions[bot]
2025-04-09 17:50:06 +00:00
Author: https://github.com/stelar7
Commit: 6ec914c7f7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4178
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ
9 changed files with 75 additions and 0 deletions
|
@ -30,6 +30,7 @@ public:
|
|||
[[nodiscard]] bool processed() const { return m_processed; }
|
||||
[[nodiscard]] IDBRequestSource source() const { return m_source; }
|
||||
[[nodiscard]] GC::Ptr<IDBTransaction> transaction() const { return m_transaction; }
|
||||
[[nodiscard]] String uuid() const { return m_uuid; }
|
||||
|
||||
[[nodiscard]] Bindings::IDBRequestReadyState ready_state() const;
|
||||
[[nodiscard]] WebIDL::ExceptionOr<GC::Ptr<WebIDL::DOMException>> error() const;
|
||||
|
@ -56,15 +57,22 @@ protected:
|
|||
private:
|
||||
// A request has a processed flag which is initially false.
|
||||
bool m_processed { false };
|
||||
|
||||
// A request has a done flag which is initially false.
|
||||
bool m_done { false };
|
||||
|
||||
// A request has a result and an error
|
||||
JS::Value m_result;
|
||||
GC::Ptr<WebIDL::DOMException> m_error;
|
||||
|
||||
// A request has a source object.
|
||||
IDBRequestSource m_source;
|
||||
|
||||
// A request has a transaction which is initially null.
|
||||
GC::Ptr<IDBTransaction> m_transaction;
|
||||
|
||||
// NOTE: Used for debug purposes
|
||||
String m_uuid;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue