mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
WebContent: Replace static_assert IPC fixmes with comments
Fixes compilation errors on Windows
This commit is contained in:
parent
3062bfd3b1
commit
ebd7f4c176
2 changed files with 5 additions and 5 deletions
|
@ -188,7 +188,7 @@ static bool fire_an_event(FlyString const& name, Optional<Web::DOM::Element&> ta
|
|||
|
||||
ErrorOr<NonnullRefPtr<WebDriverConnection>> WebDriverConnection::connect(Web::PageClient& page_client, ByteString const& webdriver_ipc_path)
|
||||
{
|
||||
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Need to handle other IPC transports here");
|
||||
// TODO: Mach IPC and Windows IPC
|
||||
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Trying to connect to {}", webdriver_ipc_path);
|
||||
auto socket = TRY(Core::LocalSocket::connect(webdriver_ipc_path));
|
||||
|
|
|
@ -210,7 +210,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
if (maybe_content_filter_error.is_error())
|
||||
dbgln("Failed to load content filters: {}", maybe_content_filter_error.error());
|
||||
|
||||
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Need to handle other IPC transports here");
|
||||
// TODO: Mach IPC
|
||||
|
||||
auto webcontent_socket = TRY(Core::take_over_socket_from_system_server("WebContent"sv));
|
||||
auto webcontent_client = TRY(WebContent::ConnectionFromClient::try_create(make<IPC::Transport>(move(webcontent_socket))));
|
||||
|
@ -250,7 +250,7 @@ static ErrorOr<void> load_content_filters(StringView config_path)
|
|||
|
||||
ErrorOr<void> initialize_resource_loader(GC::Heap& heap, int request_server_socket)
|
||||
{
|
||||
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Need to handle other IPC transports here");
|
||||
// TODO: Mach IPC
|
||||
|
||||
auto socket = TRY(Core::LocalSocket::adopt_fd(request_server_socket));
|
||||
TRY(socket->set_blocking(true));
|
||||
|
@ -267,7 +267,7 @@ ErrorOr<void> initialize_resource_loader(GC::Heap& heap, int request_server_sock
|
|||
|
||||
ErrorOr<void> initialize_image_decoder(int image_decoder_socket)
|
||||
{
|
||||
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Need to handle other IPC transports here");
|
||||
// TODO: Mach IPC
|
||||
auto socket = TRY(Core::LocalSocket::adopt_fd(image_decoder_socket));
|
||||
TRY(socket->set_blocking(true));
|
||||
|
||||
|
@ -284,7 +284,7 @@ ErrorOr<void> initialize_image_decoder(int image_decoder_socket)
|
|||
|
||||
ErrorOr<void> reinitialize_image_decoder(IPC::File const& image_decoder_socket)
|
||||
{
|
||||
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Need to handle other IPC transports here");
|
||||
// TODO: Mach IPC
|
||||
|
||||
auto socket = TRY(Core::LocalSocket::adopt_fd(image_decoder_socket.take_fd()));
|
||||
TRY(socket->set_blocking(true));
|
||||
|
|
Loading…
Add table
Reference in a new issue