mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
ProtocolServer: Put everything in the ProtocolServer namespace
This commit is contained in:
parent
2949c3e5e1
commit
a4902e0eec
21 changed files with 158 additions and 56 deletions
|
@ -28,16 +28,16 @@
|
|||
|
||||
#include <AK/RefPtr.h>
|
||||
#include <AK/URL.h>
|
||||
#include <ProtocolServer/Forward.h>
|
||||
|
||||
class Download;
|
||||
class PSClientConnection;
|
||||
namespace ProtocolServer {
|
||||
|
||||
class Protocol {
|
||||
public:
|
||||
virtual ~Protocol();
|
||||
|
||||
const String& name() const { return m_name; }
|
||||
virtual OwnPtr<Download> start_download(PSClientConnection&, const URL&) = 0;
|
||||
virtual OwnPtr<Download> start_download(ClientConnection&, const URL&) = 0;
|
||||
|
||||
static Protocol* find_by_name(const String&);
|
||||
|
||||
|
@ -47,3 +47,5 @@ protected:
|
|||
private:
|
||||
String m_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue