2023-02-02 07:00:30 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Error.h>
|
2024-04-15 20:39:48 -03:00
|
|
|
#include <AK/Optional.h>
|
2023-09-08 07:30:50 -03:00
|
|
|
#include <LibImageDecoderClient/Client.h>
|
2024-08-07 00:51:20 -03:00
|
|
|
#include <LibRequests/RequestClient.h>
|
2025-04-24 02:07:09 -03:00
|
|
|
#include <LibWeb/Bindings/MainThreadVM.h>
|
2024-01-06 17:13:59 -03:00
|
|
|
#include <LibWeb/Worker/WebWorkerClient.h>
|
2025-07-02 00:55:11 -03:00
|
|
|
#include <LibWebView/Forward.h>
|
2023-08-01 14:56:10 -03:00
|
|
|
#include <LibWebView/ViewImplementation.h>
|
|
|
|
|
#include <LibWebView/WebContentClient.h>
|
|
|
|
|
|
2024-11-10 12:26:07 -03:00
|
|
|
namespace WebView {
|
|
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
WEBVIEW_API ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(
|
2023-12-01 14:18:40 -03:00
|
|
|
WebView::ViewImplementation& view,
|
2024-06-26 16:44:42 -03:00
|
|
|
IPC::File image_decoder_socket,
|
2024-04-17 21:44:39 -03:00
|
|
|
Optional<IPC::File> request_server_socket = {});
|
2023-08-01 17:39:19 -03:00
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
WEBVIEW_API ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_spare_web_content_process(
|
2025-03-09 19:01:25 -03:00
|
|
|
IPC::File image_decoder_socket,
|
|
|
|
|
Optional<IPC::File> request_server_socket = {});
|
|
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
WEBVIEW_API ErrorOr<NonnullRefPtr<ImageDecoderClient::Client>> launch_image_decoder_process();
|
|
|
|
|
WEBVIEW_API ErrorOr<NonnullRefPtr<Web::HTML::WebWorkerClient>> launch_web_worker_process(Web::Bindings::AgentType);
|
|
|
|
|
WEBVIEW_API ErrorOr<NonnullRefPtr<Requests::RequestClient>> launch_request_server_process();
|
2024-04-15 20:39:48 -03:00
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
WEBVIEW_API ErrorOr<IPC::File> connect_new_request_server_client();
|
|
|
|
|
WEBVIEW_API ErrorOr<IPC::File> connect_new_image_decoder_client();
|
2024-11-10 12:26:07 -03:00
|
|
|
|
|
|
|
|
}
|