mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 18:11:52 +00:00
LibWeb/HTML: Hook up a WorkerAgent for web workers
This commit is contained in:
parent
5290ebfe19
commit
041ff0c7ff
Notes:
github-actions[bot]
2025-04-25 14:45:27 +00:00
Author: https://github.com/shannonbooth
Commit: 041ff0c7ff
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4453
10 changed files with 78 additions and 12 deletions
22
Libraries/LibWeb/HTML/Scripting/WorkerAgent.h
Normal file
22
Libraries/LibWeb/HTML/Scripting/WorkerAgent.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/HTML/Scripting/Agent.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#dedicated-worker-agent
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#shared-worker-agent
|
||||
struct WorkerAgent : public Agent {
|
||||
static NonnullOwnPtr<WorkerAgent> create(GC::Heap&, CanBlock);
|
||||
|
||||
private:
|
||||
using Agent::Agent;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue