2023-02-02 10:00:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-08-01 20:39:19 +00:00
|
|
|
#include "Types.h"
|
2023-02-02 10:00:30 +00:00
|
|
|
#include <AK/Error.h>
|
|
|
|
#include <AK/Span.h>
|
|
|
|
#include <AK/StringView.h>
|
2023-09-08 10:30:50 +00:00
|
|
|
#include <LibImageDecoderClient/Client.h>
|
2023-08-01 20:39:19 +00:00
|
|
|
#include <LibProtocol/RequestClient.h>
|
2023-08-03 00:13:23 +00:00
|
|
|
#include <LibProtocol/WebSocketClient.h>
|
2024-01-06 20:13:59 +00:00
|
|
|
#include <LibWeb/Worker/WebWorkerClient.h>
|
2023-08-01 17:56:10 +00:00
|
|
|
#include <LibWebView/ViewImplementation.h>
|
|
|
|
#include <LibWebView/WebContentClient.h>
|
|
|
|
|
2023-12-01 17:18:40 +00:00
|
|
|
ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(
|
|
|
|
WebView::ViewImplementation& view,
|
2023-08-01 17:56:10 +00:00
|
|
|
ReadonlySpan<String> candidate_web_content_paths,
|
2023-12-01 17:18:40 +00:00
|
|
|
Ladybird::WebContentOptions const&);
|
2023-08-01 20:39:19 +00:00
|
|
|
|
2023-09-08 10:30:50 +00:00
|
|
|
ErrorOr<NonnullRefPtr<ImageDecoderClient::Client>> launch_image_decoder_process(ReadonlySpan<String> candidate_image_decoder_paths);
|
2024-01-06 20:13:59 +00:00
|
|
|
ErrorOr<NonnullRefPtr<Web::HTML::WebWorkerClient>> launch_web_worker_process(ReadonlySpan<String> candidate_web_worker_paths);
|
2023-08-02 23:21:17 +00:00
|
|
|
ErrorOr<NonnullRefPtr<Protocol::RequestClient>> launch_request_server_process(ReadonlySpan<String> candidate_request_server_paths, StringView serenity_resource_root);
|
2023-08-03 00:13:23 +00:00
|
|
|
ErrorOr<NonnullRefPtr<Protocol::WebSocketClient>> launch_web_socket_process(ReadonlySpan<String> candidate_web_socket_paths, StringView serenity_resource_root);
|