mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
This is the same behavior as RequestServer, with the added benefit that we know how to gracefully reconnect ImageDecoder to all WebContent processes on restart.
34 lines
722 B
C++
34 lines
722 B
C++
/*
|
|
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/NonnullOwnPtr.h>
|
|
#include <AK/Vector.h>
|
|
#include <LibIPC/Forward.h>
|
|
#include <LibWebView/Forward.h>
|
|
|
|
namespace Ladybird {
|
|
|
|
struct ApplicationBridgeImpl;
|
|
class WebViewBridge;
|
|
|
|
class ApplicationBridge {
|
|
public:
|
|
ApplicationBridge();
|
|
~ApplicationBridge();
|
|
|
|
ErrorOr<void> launch_request_server(Vector<ByteString> const& certificates);
|
|
ErrorOr<void> launch_image_decoder();
|
|
ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content(WebViewBridge&);
|
|
ErrorOr<IPC::File> launch_web_worker();
|
|
|
|
private:
|
|
NonnullOwnPtr<ApplicationBridgeImpl> m_impl;
|
|
};
|
|
|
|
}
|