summaryrefslogtreecommitdiff
path: root/src/AbstractHttpServerResponseCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/AbstractHttpServerResponseCommand.h')
-rw-r--r--src/AbstractHttpServerResponseCommand.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/AbstractHttpServerResponseCommand.h b/src/AbstractHttpServerResponseCommand.h
index 652d6b05..f972da90 100644
--- a/src/AbstractHttpServerResponseCommand.h
+++ b/src/AbstractHttpServerResponseCommand.h
@@ -36,7 +36,9 @@
#define D_ABSTRACT_HTTP_SERVER_RESPONSE_COMMAND_H
#include "Command.h"
-#include "SharedHandle.h"
+
+#include <memory>
+
#include "TimerA2.h"
namespace aria2 {
@@ -48,8 +50,8 @@ class HttpServer;
class AbstractHttpServerResponseCommand : public Command {
private:
DownloadEngine* e_;
- SharedHandle<SocketCore> socket_;
- SharedHandle<HttpServer> httpServer_;
+ std::shared_ptr<SocketCore> socket_;
+ std::shared_ptr<HttpServer> httpServer_;
Timer timeoutTimer_;
bool readCheck_;
bool writeCheck_;
@@ -61,13 +63,13 @@ protected:
return e_;
}
// Called after content body is completely sent.
- virtual void afterSend(const SharedHandle<HttpServer>& httpServer,
+ virtual void afterSend(const std::shared_ptr<HttpServer>& httpServer,
DownloadEngine* e) = 0;
public:
AbstractHttpServerResponseCommand(cuid_t cuid,
- const SharedHandle<HttpServer>& httpServer,
+ const std::shared_ptr<HttpServer>& httpServer,
DownloadEngine* e,
- const SharedHandle<SocketCore>& socket);
+ const std::shared_ptr<SocketCore>& socket);
virtual ~AbstractHttpServerResponseCommand();