diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/AbstractHttpServerResponseCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/AbstractHttpServerResponseCommand.h')
| -rw-r--r-- | src/AbstractHttpServerResponseCommand.h | 14 |
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(); |
