/* * Copyright (c) 2024, stelar7 * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::IndexedDB { // https://w3c.github.io/IndexedDB/#index-interface class IDBIndex : public Bindings::PlatformObject { WEB_PLATFORM_OBJECT(IDBIndex, Bindings::PlatformObject); GC_DECLARE_ALLOCATOR(IDBIndex); public: virtual ~IDBIndex() override; [[nodiscard]] static GC::Ref create(JS::Realm&); protected: explicit IDBIndex(JS::Realm&); virtual void initialize(JS::Realm&) override; }; }