mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
25 lines
611 B
C++
25 lines
611 B
C++
/*
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/HTML/WorkerGlobalScope.h>
|
|
|
|
namespace Web::ServiceWorker {
|
|
|
|
// https://w3c.github.io/ServiceWorker/#serviceworkerglobalscope
|
|
class ServiceWorkerGlobalScope : public HTML::WorkerGlobalScope {
|
|
WEB_PLATFORM_OBJECT(ServiceWorkerGlobalScope, HTML::WorkerGlobalScope);
|
|
GC_DECLARE_ALLOCATOR(ServiceWorkerGlobalScope);
|
|
|
|
public:
|
|
virtual ~ServiceWorkerGlobalScope() override;
|
|
|
|
protected:
|
|
explicit ServiceWorkerGlobalScope(JS::Realm&, GC::Ref<Web::Page>);
|
|
};
|
|
|
|
}
|