diff options
Diffstat (limited to 'Libraries/LibProtocol/Download.h')
-rw-r--r-- | Libraries/LibProtocol/Download.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibProtocol/Download.h b/Libraries/LibProtocol/Download.h index 4934e54fb9..12f7ce9052 100644 --- a/Libraries/LibProtocol/Download.h +++ b/Libraries/LibProtocol/Download.h @@ -48,10 +48,10 @@ public: int id() const { return m_download_id; } bool stop(); - Function<void(bool success, const ByteBuffer& payload, RefPtr<SharedBuffer> payload_storage, const HashMap<String, String, CaseInsensitiveStringTraits>& response_headers)> on_finish; + Function<void(bool success, const ByteBuffer& payload, RefPtr<SharedBuffer> payload_storage, const HashMap<String, String, CaseInsensitiveStringTraits>& response_headers, Optional<u32> status_code)> on_finish; Function<void(Optional<u32> total_size, u32 downloaded_size)> on_progress; - void did_finish(Badge<Client>, bool success, u32 total_size, i32 shbuf_id, const IPC::Dictionary& response_headers); + void did_finish(Badge<Client>, bool success, Optional<u32> status_code, u32 total_size, i32 shbuf_id, const IPC::Dictionary& response_headers); void did_progress(Badge<Client>, Optional<u32> total_size, u32 downloaded_size); private: |