2023-02-02 13:00:30 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-08-01 23:39:19 +03:00
|
|
|
#include "Types.h"
|
2023-02-02 13:00:30 +03:00
|
|
|
#include <AK/Error.h>
|
2024-04-16 02:39:48 +03:00
|
|
|
#include <AK/Optional.h>
|
2023-02-02 13:00:30 +03:00
|
|
|
#include <AK/Span.h>
|
|
|
|
#include <AK/StringView.h>
|
2023-09-08 13:30:50 +03:00
|
|
|
#include <LibImageDecoderClient/Client.h>
|
2023-08-01 23:39:19 +03:00
|
|
|
#include <LibProtocol/RequestClient.h>
|
2024-01-06 23:13:59 +03:00
|
|
|
#include <LibWeb/Worker/WebWorkerClient.h>
|
2023-08-01 20:56:10 +03:00
|
|
|
#include <LibWebView/ViewImplementation.h>
|
|
|
|
#include <LibWebView/WebContentClient.h>
|
|
|
|
|
2023-12-01 20:18:40 +03:00
|
|
|
ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(
|
|
|
|
WebView::ViewImplementation& view,
|
2024-02-22 04:27:05 +03:00
|
|
|
ReadonlySpan<ByteString> candidate_web_content_paths,
|
2024-04-16 02:39:48 +03:00
|
|
|
Ladybird::WebContentOptions const&,
|
2024-06-26 22:44:42 +03:00
|
|
|
IPC::File image_decoder_socket,
|
2024-04-18 03:44:39 +03:00
|
|
|
Optional<IPC::File> request_server_socket = {});
|
2023-08-01 23:39:19 +03:00
|
|
|
|
2024-02-22 04:27:05 +03:00
|
|
|
ErrorOr<NonnullRefPtr<ImageDecoderClient::Client>> launch_image_decoder_process(ReadonlySpan<ByteString> candidate_image_decoder_paths);
|
2024-04-16 02:39:48 +03:00
|
|
|
ErrorOr<NonnullRefPtr<Web::HTML::WebWorkerClient>> launch_web_worker_process(ReadonlySpan<ByteString> candidate_web_worker_paths, NonnullRefPtr<Protocol::RequestClient>);
|
2024-02-22 04:27:05 +03:00
|
|
|
ErrorOr<NonnullRefPtr<Protocol::RequestClient>> launch_request_server_process(ReadonlySpan<ByteString> candidate_request_server_paths, StringView serenity_resource_root, Vector<ByteString> const& certificates);
|
2024-04-16 02:39:48 +03:00
|
|
|
|
2024-04-18 03:44:39 +03:00
|
|
|
ErrorOr<IPC::File> connect_new_request_server_client(Protocol::RequestClient&);
|
2024-06-26 22:44:42 +03:00
|
|
|
ErrorOr<IPC::File> connect_new_image_decoder_client(ImageDecoderClient::Client&);
|