mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
27 lines
632 B
C
27 lines
632 B
C
![]() |
/*
|
||
|
* 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 ServiceWorkerContainer : public DOM::EventTarget {
|
||
|
WEB_PLATFORM_OBJECT(ServiceWorkerContainer, DOM::EventTarget);
|
||
|
JS_DECLARE_ALLOCATOR(ServiceWorkerContainer);
|
||
|
|
||
|
public:
|
||
|
[[nodiscard]] static JS::NonnullGCPtr<ServiceWorkerContainer> create(JS::Realm& realm);
|
||
|
|
||
|
explicit ServiceWorkerContainer(JS::Realm&);
|
||
|
virtual ~ServiceWorkerContainer() override = default;
|
||
|
|
||
|
virtual void initialize(JS::Realm&) override;
|
||
|
};
|
||
|
|
||
|
}
|