/* * Copyright (c) 2022, Andrew Kaster * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Web::HTML { class WorkerNavigator : public Bindings::PlatformObject , public NavigatorConcurrentHardwareMixin , public NavigatorIDMixin , public NavigatorLanguageMixin , public NavigatorOnLineMixin { WEB_PLATFORM_OBJECT(WorkerNavigator, Bindings::PlatformObject); public: static WebIDL::ExceptionOr> create(WorkerGlobalScope&); virtual ~WorkerNavigator() override; private: explicit WorkerNavigator(WorkerGlobalScope&); virtual JS::ThrowCompletionOr initialize(JS::Realm&) override; }; }