ladybird/Libraries/LibWeb/IndexedDB/IDBCursor.h
2024-11-26 14:50:27 +01:00

27 lines
629 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/#cursor-interface
class IDBCursor : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(IDBCursor, Bindings::PlatformObject);
GC_DECLARE_ALLOCATOR(IDBCursor);
public:
virtual ~IDBCursor() override;
[[nodiscard]] static GC::Ref<IDBCursor> create(JS::Realm&);
protected:
explicit IDBCursor(JS::Realm&);
virtual void initialize(JS::Realm&) override;
};
}