mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-26 19:04:14 +00:00
35 lines
729 B
C++
35 lines
729 B
C++
|
|
/*
|
||
|
|
* 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);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|