IDBObjectStore.h 666 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibGC/Heap.h>
  8. #include <LibWeb/Bindings/PlatformObject.h>
  9. namespace Web::IndexedDB {
  10. // https://w3c.github.io/IndexedDB/#object-store-interface
  11. class IDBObjectStore : public Bindings::PlatformObject {
  12. WEB_PLATFORM_OBJECT(IDBObjectStore, Bindings::PlatformObject);
  13. GC_DECLARE_ALLOCATOR(IDBObjectStore);
  14. public:
  15. virtual ~IDBObjectStore() override;
  16. [[nodiscard]] static GC::Ref<IDBObjectStore> create(JS::Realm&);
  17. protected:
  18. explicit IDBObjectStore(JS::Realm&);
  19. virtual void initialize(JS::Realm&) override;
  20. };
  21. }