diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-17 16:33:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-17 16:33:09 +0200 |
commit | a4902e0eec7fff0d58f57ff987c51460ac02783e (patch) | |
tree | 6af9aad18976647ba3567a6d03fd833c6e7b6d5b /Services/ProtocolServer/Download.h | |
parent | 2949c3e5e1d49373f4684f3cce6a9f56920e4240 (diff) | |
download | serenity-a4902e0eec7fff0d58f57ff987c51460ac02783e.zip |
ProtocolServer: Put everything in the ProtocolServer namespace
Diffstat (limited to 'Services/ProtocolServer/Download.h')
-rw-r--r-- | Services/ProtocolServer/Download.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Services/ProtocolServer/Download.h b/Services/ProtocolServer/Download.h index 08b0605e03..9bc3c7a5f7 100644 --- a/Services/ProtocolServer/Download.h +++ b/Services/ProtocolServer/Download.h @@ -31,8 +31,9 @@ #include <AK/Optional.h> #include <AK/RefCounted.h> #include <AK/URL.h> +#include <ProtocolServer/Forward.h> -class PSClientConnection; +namespace ProtocolServer { class Download { public: @@ -49,7 +50,7 @@ public: void stop(); protected: - explicit Download(PSClientConnection&); + explicit Download(ClientConnection&); void did_finish(bool success); void did_progress(Optional<u32> total_size, u32 downloaded_size); @@ -57,7 +58,7 @@ protected: void set_response_headers(const HashMap<String, String, CaseInsensitiveStringTraits>&); private: - PSClientConnection& m_client; + ClientConnection& m_client; i32 m_id { 0 }; URL m_url; Optional<u32> m_total_size {}; @@ -65,3 +66,5 @@ private: ByteBuffer m_payload; HashMap<String, String, CaseInsensitiveStringTraits> m_response_headers; }; + +} |