IDBObjectStore.cpp 729 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Bindings/IDBObjectStorePrototype.h>
  7. #include <LibWeb/Bindings/Intrinsics.h>
  8. #include <LibWeb/HTML/EventNames.h>
  9. #include <LibWeb/IndexedDB/IDBObjectStore.h>
  10. namespace Web::IndexedDB {
  11. GC_DEFINE_ALLOCATOR(IDBObjectStore);
  12. IDBObjectStore::~IDBObjectStore() = default;
  13. IDBObjectStore::IDBObjectStore(JS::Realm& realm)
  14. : PlatformObject(realm)
  15. {
  16. }
  17. GC::Ref<IDBObjectStore> IDBObjectStore::create(JS::Realm& realm)
  18. {
  19. return realm.create<IDBObjectStore>(realm);
  20. }
  21. void IDBObjectStore::initialize(JS::Realm& realm)
  22. {
  23. Base::initialize(realm);
  24. WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBObjectStore);
  25. }
  26. }