mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
eb85103271
The DownloadFinished message from the server now includes a buffer ID that can be mapped into the client program. To avoid prematurely destroying the buffer, the server will hang on to it until the client lets it know that they're all good. That's what the ProtocolServer::DisownSharedBuffer message is about. In the future it would be nice if the kernel had a mechanism to allow passing ownership of a shared buffer along with an IPC message somehow.
6 lines
234 B
Text
6 lines
234 B
Text
endpoint ProtocolClient = 13
|
|
{
|
|
// Download notifications
|
|
DownloadProgress(i32 download_id, u32 total_size, u32 downloaded_size) =|
|
|
DownloadFinished(i32 download_id, bool success, u32 total_size, i32 shared_buffer_id) =|
|
|
}
|