2022-10-09 05:53:08 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
|
2024-04-05 21:44:35 +03:00
|
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
2022-10-09 05:53:08 +03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-04-05 21:44:35 +03:00
|
|
|
#include <LibCore/System.h>
|
2024-02-26 20:54:36 +03:00
|
|
|
#include <LibWeb/WebIDL/Types.h>
|
|
|
|
|
2022-10-09 05:53:08 +03:00
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
class NavigatorConcurrentHardwareMixin {
|
|
|
|
public:
|
|
|
|
// https://html.spec.whatwg.org/multipage/workers.html#dom-navigator-hardwareconcurrency
|
2024-04-05 21:44:35 +03:00
|
|
|
static WebIDL::UnsignedLongLong hardware_concurrency() { return Core::System::hardware_concurrency(); }
|
2022-10-09 05:53:08 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|