summaryrefslogtreecommitdiff
path: root/Libraries/LibProtocol/Download.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibProtocol/Download.h')
-rw-r--r--Libraries/LibProtocol/Download.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibProtocol/Download.h b/Libraries/LibProtocol/Download.h
index b5577800ed..7296d1df06 100644
--- a/Libraries/LibProtocol/Download.h
+++ b/Libraries/LibProtocol/Download.h
@@ -47,10 +47,10 @@ public:
bool stop();
Function<void(bool success, const ByteBuffer& payload, RefPtr<SharedBuffer> payload_storage)> on_finish;
- Function<void(u32 total_size, u32 downloaded_size)> on_progress;
+ Function<void(Optional<u32> total_size, u32 downloaded_size)> on_progress;
void did_finish(Badge<Client>, bool success, u32 total_size, i32 shbuf_id);
- void did_progress(Badge<Client>, u32 total_size, u32 downloaded_size);
+ void did_progress(Badge<Client>, Optional<u32> total_size, u32 downloaded_size);
private:
explicit Download(Client&, i32 download_id);