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>
|
|
|
|
#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,
|
2023-12-01 20:18:40 +03:00
|
|
|
Ladybird::WebContentOptions const&);
|
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);
|
|
|
|
ErrorOr<NonnullRefPtr<Web::HTML::WebWorkerClient>> launch_web_worker_process(ReadonlySpan<ByteString> candidate_web_worker_paths, Vector<ByteString> const& certificates);
|
|
|
|
ErrorOr<NonnullRefPtr<Protocol::RequestClient>> launch_request_server_process(ReadonlySpan<ByteString> candidate_request_server_paths, StringView serenity_resource_root, Vector<ByteString> const& certificates);
|