mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
RequestServer: Enable in Windows CI
This commit is contained in:
parent
c7f35193d0
commit
58be9e6400
Notes:
github-actions[bot]
2025-08-23 22:07:29 +00:00
Author: https://github.com/ayeteadoe
Commit: 58be9e6400
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5229
Reviewed-by: https://github.com/ADKaster ✅
5 changed files with 31 additions and 13 deletions
|
@ -45,8 +45,9 @@ ErrorOr<BrowserProcess::ProcessDisposition> BrowserProcess::connect(Vector<ByteS
|
|||
return ProcessDisposition::ContinueMainProcess;
|
||||
}
|
||||
|
||||
ErrorOr<void> BrowserProcess::connect_as_client(ByteString const& socket_path, Vector<ByteString> const& raw_urls, NewWindow new_window)
|
||||
ErrorOr<void> BrowserProcess::connect_as_client([[maybe_unused]] ByteString const& socket_path, [[maybe_unused]] Vector<ByteString> const& raw_urls, [[maybe_unused]] NewWindow new_window)
|
||||
{
|
||||
#if !defined(AK_OS_WINDOWS)
|
||||
// TODO: Mach IPC
|
||||
auto socket = TRY(Core::LocalSocket::connect(socket_path));
|
||||
auto client = UIProcessClient::construct(make<IPC::Transport>(move(socket)));
|
||||
|
@ -60,10 +61,14 @@ ErrorOr<void> BrowserProcess::connect_as_client(ByteString const& socket_path, V
|
|||
}
|
||||
|
||||
return {};
|
||||
#else
|
||||
return Error::from_string_literal("BrowserProcess::connect_as_client() is not implemented on Windows");
|
||||
#endif
|
||||
}
|
||||
|
||||
ErrorOr<void> BrowserProcess::connect_as_server(ByteString const& socket_path)
|
||||
ErrorOr<void> BrowserProcess::connect_as_server([[maybe_unused]] ByteString const& socket_path)
|
||||
{
|
||||
#if !defined(AK_OS_WINDOWS)
|
||||
// TODO: Mach IPC
|
||||
auto socket_fd = TRY(Process::create_ipc_socket(socket_path));
|
||||
m_socket_path = socket_path;
|
||||
|
@ -85,6 +90,9 @@ ErrorOr<void> BrowserProcess::connect_as_server(ByteString const& socket_path)
|
|||
};
|
||||
|
||||
return {};
|
||||
#else
|
||||
return Error::from_string_literal("BrowserProcess::connect_as_server() is not implemented on Windows");
|
||||
#endif
|
||||
}
|
||||
|
||||
BrowserProcess::~BrowserProcess()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue