mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
28 lines
666 B
C++
28 lines
666 B
C++
/*
|
|
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGC/Heap.h>
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
|
|
namespace Web::IndexedDB {
|
|
|
|
// https://w3c.github.io/IndexedDB/#object-store-interface
|
|
class IDBObjectStore : public Bindings::PlatformObject {
|
|
WEB_PLATFORM_OBJECT(IDBObjectStore, Bindings::PlatformObject);
|
|
GC_DECLARE_ALLOCATOR(IDBObjectStore);
|
|
|
|
public:
|
|
virtual ~IDBObjectStore() override;
|
|
[[nodiscard]] static GC::Ref<IDBObjectStore> create(JS::Realm&);
|
|
|
|
protected:
|
|
explicit IDBObjectStore(JS::Realm&);
|
|
virtual void initialize(JS::Realm&) override;
|
|
};
|
|
|
|
}
|