summaryrefslogtreecommitdiff
path: root/src/WebSocketInteractionCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/WebSocketInteractionCommand.h
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/WebSocketInteractionCommand.h')
-rw-r--r--src/WebSocketInteractionCommand.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/WebSocketInteractionCommand.h b/src/WebSocketInteractionCommand.h
index c27bf90e..4b1acf73 100644
--- a/src/WebSocketInteractionCommand.h
+++ b/src/WebSocketInteractionCommand.h
@@ -36,7 +36,8 @@
#define D_WEB_SOCKET_INTERACTION_COMMAND_H
#include "Command.h"
-#include "SharedHandle.h"
+
+#include <memory>
namespace aria2 {
@@ -50,14 +51,14 @@ class WebSocketSession;
class WebSocketInteractionCommand : public Command {
private:
DownloadEngine* e_;
- SharedHandle<SocketCore> socket_;
+ std::shared_ptr<SocketCore> socket_;
bool writeCheck_;
- SharedHandle<WebSocketSession> wsSession_;
+ std::shared_ptr<WebSocketSession> wsSession_;
public:
WebSocketInteractionCommand(cuid_t cuid,
- const SharedHandle<WebSocketSession>& wsSession,
+ const std::shared_ptr<WebSocketSession>& wsSession,
DownloadEngine* e,
- const SharedHandle<SocketCore>& socket);
+ const std::shared_ptr<SocketCore>& socket);
virtual ~WebSocketInteractionCommand();