RequestServer: Enable in Windows CI

This commit is contained in:
ayeteadoe 2025-06-28 03:24:38 -07:00 committed by Andrew Kaster
commit 58be9e6400
Notes: github-actions[bot] 2025-08-23 22:07:29 +00:00
5 changed files with 31 additions and 13 deletions

View file

@ -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()