mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-18 09:02:53 +00:00
LibWeb: Stub StorageManager idl interface
This commit is contained in:
parent
97d5cf4eef
commit
1b84062c74
Notes:
github-actions[bot]
2024-08-16 15:23:18 +00:00
Author: https://github.com/jamierocks
Commit: 1b84062c74
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1066
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/trflynn89 ✅
10 changed files with 87 additions and 0 deletions
32
Userland/Libraries/LibWeb/StorageAPI/StorageManager.cpp
Normal file
32
Userland/Libraries/LibWeb/StorageAPI/StorageManager.cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/Bindings/StorageManagerPrototype.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/StorageAPI/StorageManager.h>
|
||||
|
||||
namespace Web::StorageAPI {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(StorageManager);
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<StorageManager>> StorageManager::create(JS::Realm& realm)
|
||||
{
|
||||
return realm.heap().allocate<StorageManager>(realm, realm);
|
||||
}
|
||||
|
||||
StorageManager::StorageManager(JS::Realm& realm)
|
||||
: PlatformObject(realm)
|
||||
{
|
||||
}
|
||||
|
||||
void StorageManager::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(StorageManager);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue