mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibWeb: Add IDBObjectStore
This commit is contained in:
parent
297c775b34
commit
16ce2b975a
Notes:
github-actions[bot]
2024-11-26 13:52:57 +00:00
Author: https://github.com/stelar7
Commit: 16ce2b975a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2236
Reviewed-by: https://github.com/gmta ✅
8 changed files with 99 additions and 0 deletions
34
Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp
Normal file
34
Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/IDBObjectStorePrototype.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/HTML/EventNames.h>
|
||||
#include <LibWeb/IndexedDB/IDBObjectStore.h>
|
||||
|
||||
namespace Web::IndexedDB {
|
||||
|
||||
GC_DEFINE_ALLOCATOR(IDBObjectStore);
|
||||
|
||||
IDBObjectStore::~IDBObjectStore() = default;
|
||||
|
||||
IDBObjectStore::IDBObjectStore(JS::Realm& realm)
|
||||
: PlatformObject(realm)
|
||||
{
|
||||
}
|
||||
|
||||
GC::Ref<IDBObjectStore> IDBObjectStore::create(JS::Realm& realm)
|
||||
{
|
||||
return realm.create<IDBObjectStore>(realm);
|
||||
}
|
||||
|
||||
void IDBObjectStore::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBObjectStore);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue