ladybird/UI/Headless
Timothy Flynn 68947d55d9 LibIPC: Do not require constructing containers when sending IPC messages
For example, consider the following IPC message:

    do_something(u64 page_id, String string, Vector<Data> data) =|

We would previously generate the following C++ method to encode/transfer
this message:

    void do_something(u64 page_id, String string, Vector<Data> data);

This required the caller to either have to copy the non-trivial types or
`move` them in. In some places, this meant we had to construct temporary
vectors just to send an IPC.

This isn't necessary because we weren't holding onto these parameters
anyways. We would construct an IPC::Message subclass with them (which
does require owning types), but then immediate encode the message to
an IPC::MessageBuffer and send it.

We now generate code such that we don't need to construct a Message. We
can simply encode the parameters directly without needing ownership.
This allows us to take view-types to IPC parameters.

So the above example now becomes:

    void do_something(u64, StringView, ReadonlySpan<Data>);
2025-03-09 11:14:20 -04:00
..
Application.cpp headless-browser: Allow the -f argument to be used multiple times 2025-02-05 06:58:52 -05:00
Application.h headless-browser: Allow the -f argument to be used multiple times 2025-02-05 06:58:52 -05:00
CMakeLists.txt CI: Enable verbose logging of LibWeb tests 2024-11-30 12:10:12 -05:00
Fixture.cpp LibWeb: Don't try to wait for HTTP server to exit if kill call fails 2024-12-20 14:59:56 +01:00
Fixture.h LibWebView+UI: Read and set echo server port in HttpEchoServerFixture 2024-12-05 17:02:57 -07:00
HeadlessWebView.cpp LibIPC: Do not require constructing containers when sending IPC messages 2025-03-09 11:14:20 -04:00
HeadlessWebView.h LibWeb+UI: Add internals API to set browser zoom 2025-01-21 16:05:12 +01:00
main.cpp Everywhere: Use URL::about_XXX factory functions 2025-02-15 17:05:55 +00:00
Test.cpp headless-browser: Do not log the inner text of crash tests 2025-03-02 11:49:49 -05:00
Test.h headless-browser: Add support for crash tests 2025-01-17 09:08:15 +01:00