Skip to content

Truly independent web browser

523 B
Raw Blame
/*
 * Copyright (c) 2025, Shannon Booth <[email protected]>
 *
 * 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 {
    AK_ALLOC_WITH_KMALLOC;

    static NonnullOwnPtr<WorkerAgent> create(GC::Heap&, CanBlock);

private:
    using Agent::Agent;
};

}