2022-10-25 15:36:50 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-02-28 15:12:44 -03:00
|
|
|
#include <AK/Variant.h>
|
2024-11-14 12:01:23 -03:00
|
|
|
#include <LibGC/Ptr.h>
|
2022-10-25 15:36:50 -03:00
|
|
|
#include <LibJS/Forward.h>
|
2025-07-19 23:35:33 -03:00
|
|
|
#include <LibWeb/Export.h>
|
2024-03-22 16:28:41 -03:00
|
|
|
#include <LibWeb/Forward.h>
|
2024-08-04 12:10:49 -03:00
|
|
|
#include <LibWeb/HTML/EventLoop/Task.h>
|
2022-10-25 15:36:50 -03:00
|
|
|
|
|
|
|
|
namespace Web::Fetch::Infrastructure {
|
|
|
|
|
|
2025-07-16 07:29:26 -03:00
|
|
|
using TaskDestination = Variant<Empty, GC::Ref<JS::Object>, NonnullRefPtr<HTML::ParallelQueue>>;
|
2023-02-28 15:12:44 -03:00
|
|
|
|
2025-07-16 07:29:26 -03:00
|
|
|
HTML::TaskID queue_fetch_task(TaskDestination, GC::Ref<GC::Function<void()>>);
|
2025-07-19 23:35:33 -03:00
|
|
|
WEB_API HTML::TaskID queue_fetch_task(GC::Ref<FetchController>, TaskDestination, GC::Ref<GC::Function<void()>>);
|
2022-10-25 15:36:50 -03:00
|
|
|
|
|
|
|
|
}
|