/* * Copyright (c) 2022, Andrew Kaster * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Web::HTML { // FIXME: Add Mixin APIs from https://html.spec.whatwg.org/multipage/workers.html#the-workernavigator-object class WorkerNavigator : public Bindings::PlatformObject { WEB_PLATFORM_OBJECT(WorkerNavigator, Bindings::PlatformObject); public: static JS::NonnullGCPtr create(WorkerGlobalScope&); virtual ~WorkerNavigator() override; private: explicit WorkerNavigator(WorkerGlobalScope&); }; } WRAPPER_HACK(WorkerNavigator, Web::HTML)