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>
|
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,
|
2023-12-01 17:18:40 +00:00
|
|
|
Ladybird::WebContentOptions const&);
|
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);
|
|
|
|
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);
|