LibWebView+LibCore: Manage process lifecycle using a SIGCHLD handler

This large commit also refactors LibWebView's process handling to use
a top-level Application class that uses a new WebView::Process class to
encapsulate the IPC-centric nature of each helper process.
This commit is contained in:
Andrew Kaster 2024-06-29 22:24:01 -06:00 committed by Alexander Kalenik
commit 4cc3d598f9
Notes: sideshowbarker 2024-07-17 06:51:10 +09:00
24 changed files with 382 additions and 196 deletions

View file

@ -20,9 +20,6 @@ void Client::die()
promise->reject(Error::from_string_literal("ImageDecoder disconnected"));
}
m_pending_decoded_images.clear();
if (on_death)
on_death();
}
NonnullRefPtr<Core::Promise<DecodedImage>> Client::decode_image(ReadonlyBytes encoded_data, Function<ErrorOr<void>(DecodedImage&)> on_resolved, Function<void(Error&)> on_rejected, Optional<Gfx::IntSize> ideal_size, Optional<ByteString> mime_type)