mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibWeb: Stub the ServiceWorkerRegistration
interface
This commit is contained in:
parent
70fdf7affb
commit
0c0a4a6042
Notes:
github-actions[bot]
2024-08-25 10:54:13 +00:00
Author: https://github.com/tcl3
Commit: 0c0a4a6042
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1173
8 changed files with 88 additions and 0 deletions
26
Userland/Libraries/LibWeb/HTML/ServiceWorkerRegistration.h
Normal file
26
Userland/Libraries/LibWeb/HTML/ServiceWorkerRegistration.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Tim Ledbetter <tim.ledbetter@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
class ServiceWorkerRegistration : public DOM::EventTarget {
|
||||
WEB_PLATFORM_OBJECT(ServiceWorkerRegistration, DOM::EventTarget);
|
||||
JS_DECLARE_ALLOCATOR(ServiceWorkerRegistration);
|
||||
|
||||
public:
|
||||
[[nodiscard]] static JS::NonnullGCPtr<ServiceWorkerRegistration> create(JS::Realm& realm);
|
||||
|
||||
explicit ServiceWorkerRegistration(JS::Realm&);
|
||||
virtual ~ServiceWorkerRegistration() override = default;
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue