mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
ProtocolServer: Implement and handle download progress
Also updates `pro` to display download progress and speed on stderr
This commit is contained in:
parent
c6825a96c7
commit
06cf9d3fb7
Notes:
sideshowbarker
2024-07-19 07:01:24 +09:00
Author: https://github.com/alimpfard
Commit: 06cf9d3fb7
Pull-request: https://github.com/SerenityOS/serenity/pull/2081
14 changed files with 97 additions and 22 deletions
|
@ -55,7 +55,7 @@ void Download::did_finish(Badge<Client>, bool success, u32 total_size, i32 shbuf
|
|||
on_finish(success, payload, move(shared_buffer));
|
||||
}
|
||||
|
||||
void Download::did_progress(Badge<Client>, u32 total_size, u32 downloaded_size)
|
||||
void Download::did_progress(Badge<Client>, Optional<u32> total_size, u32 downloaded_size)
|
||||
{
|
||||
if (on_progress)
|
||||
on_progress(total_size, downloaded_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue