1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 18:07:35 +00:00

ProtocolServer: Put everything in the ProtocolServer namespace

This commit is contained in:
Andreas Kling 2020-05-17 16:33:09 +02:00
parent 2949c3e5e1
commit a4902e0eec
21 changed files with 158 additions and 56 deletions

View file

@ -28,18 +28,20 @@
#include <AK/Badge.h>
#include <LibCore/Forward.h>
#include <LibHTTP/HttpJob.h>
#include <LibHTTP/Forward.h>
#include <ProtocolServer/Download.h>
class HttpProtocol;
namespace ProtocolServer {
class HttpDownload final : public Download {
public:
virtual ~HttpDownload() override;
static NonnullOwnPtr<HttpDownload> create_with_job(Badge<HttpProtocol>, PSClientConnection&, NonnullRefPtr<HTTP::HttpJob>);
static NonnullOwnPtr<HttpDownload> create_with_job(Badge<HttpProtocol>, ClientConnection&, NonnullRefPtr<HTTP::HttpJob>);
private:
explicit HttpDownload(PSClientConnection&, NonnullRefPtr<HTTP::HttpJob>);
explicit HttpDownload(ClientConnection&, NonnullRefPtr<HTTP::HttpJob>);
NonnullRefPtr<HTTP::HttpJob> m_job;
};
}