2024-05-19 18:07:06 +12:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
2024-06-22 11:26:48 +01:00
|
|
|
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
2024-11-04 18:20:47 +01:00
|
|
|
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
|
2024-05-19 18:07:06 +12:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/IndexedDB/IDBRequest.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::IndexedDB {
|
|
|
|
|
|
|
|
|
|
// https://w3c.github.io/IndexedDB/#idbopendbrequest
|
|
|
|
|
class IDBOpenDBRequest : public IDBRequest {
|
|
|
|
|
WEB_PLATFORM_OBJECT(IDBOpenDBRequest, IDBRequest);
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DECLARE_ALLOCATOR(IDBOpenDBRequest);
|
2024-05-19 18:07:06 +12:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
virtual ~IDBOpenDBRequest();
|
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
[[nodiscard]] static GC::Ref<IDBOpenDBRequest> create(JS::Realm&);
|
2024-11-04 18:20:47 +01:00
|
|
|
|
2024-06-22 11:26:48 +01:00
|
|
|
void set_onblocked(WebIDL::CallbackType*);
|
|
|
|
|
WebIDL::CallbackType* onblocked();
|
2024-06-22 11:28:25 +01:00
|
|
|
void set_onupgradeneeded(WebIDL::CallbackType*);
|
|
|
|
|
WebIDL::CallbackType* onupgradeneeded();
|
2024-06-22 11:26:48 +01:00
|
|
|
|
2024-05-19 18:07:06 +12:00
|
|
|
protected:
|
|
|
|
|
explicit IDBOpenDBRequest(JS::Realm&);
|
|
|
|
|
|
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|