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