LibWeb/IDB: Implement IDBFactory::databases()

This commit is contained in:
stelar7 2025-03-13 10:10:49 +01:00 committed by Jelle Raaijmakers
commit 664c57af16
Notes: github-actions[bot] 2025-03-14 07:55:38 +00:00
5 changed files with 75 additions and 5 deletions

View file

@ -1,12 +1,13 @@
/*
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
* Copyright (c) 2024-2025, stelar7 <dudedbz@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Runtime/PromiseCapability.h>
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/IndexedDB/IDBOpenDBRequest.h>
@ -22,6 +23,7 @@ public:
WebIDL::ExceptionOr<GC::Ref<IDBOpenDBRequest>> open(String const& name, Optional<u64> version);
WebIDL::ExceptionOr<GC::Ref<IDBOpenDBRequest>> delete_database(String const& name);
GC::Ref<WebIDL::Promise> databases();
WebIDL::ExceptionOr<i8> cmp(JS::Value first, JS::Value second);