2023-02-02 10:00:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Error.h>
|
2024-04-15 23:39:48 +00:00
|
|
|
#include <AK/Optional.h>
|
2023-02-02 10:00:30 +00:00
|
|
|
#include <AK/Span.h>
|
|
|
|
#include <AK/StringView.h>
|
2023-09-08 10:30:50 +00:00
|
|
|
#include <LibImageDecoderClient/Client.h>
|
2024-08-07 03:51:20 +00:00
|
|
|
#include <LibRequests/RequestClient.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,
|
2024-02-22 01:27:05 +00:00
|
|
|
ReadonlySpan<ByteString> candidate_web_content_paths,
|
2024-06-26 19:44:42 +00:00
|
|
|
IPC::File image_decoder_socket,
|
2024-04-18 00:44:39 +00:00
|
|
|
Optional<IPC::File> request_server_socket = {});
|
2023-08-01 20:39:19 +00:00
|
|
|
|
2024-02-22 01:27:05 +00:00
|
|
|
ErrorOr<NonnullRefPtr<ImageDecoderClient::Client>> launch_image_decoder_process(ReadonlySpan<ByteString> candidate_image_decoder_paths);
|
2024-08-07 03:51:20 +00:00
|
|
|
ErrorOr<NonnullRefPtr<Web::HTML::WebWorkerClient>> launch_web_worker_process(ReadonlySpan<ByteString> candidate_web_worker_paths, RefPtr<Requests::RequestClient>);
|
|
|
|
ErrorOr<NonnullRefPtr<Requests::RequestClient>> launch_request_server_process(ReadonlySpan<ByteString> candidate_request_server_paths, StringView serenity_resource_root);
|
2024-04-15 23:39:48 +00:00
|
|
|
|
2024-08-07 03:51:20 +00:00
|
|
|
ErrorOr<IPC::File> connect_new_request_server_client(Requests::RequestClient&);
|
2024-06-26 19:44:42 +00:00
|
|
|
ErrorOr<IPC::File> connect_new_image_decoder_client(ImageDecoderClient::Client&);
|