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/HttpResponseCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/HttpResponseCommand.h')
| -rw-r--r-- | src/HttpResponseCommand.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h index 6c691e0e..8a947d5d 100644 --- a/src/HttpResponseCommand.h +++ b/src/HttpResponseCommand.h @@ -61,16 +61,16 @@ class Checksum; // HttpSkipResponseCommand. class HttpResponseCommand : public AbstractCommand { private: - SharedHandle<HttpConnection> httpConnection_; + std::shared_ptr<HttpConnection> httpConnection_; - bool handleDefaultEncoding(const SharedHandle<HttpResponse>& httpResponse); - bool handleOtherEncoding(const SharedHandle<HttpResponse>& httpResponse); - bool skipResponseBody(const SharedHandle<HttpResponse>& httpResponse); + bool handleDefaultEncoding(const std::shared_ptr<HttpResponse>& httpResponse); + bool handleOtherEncoding(const std::shared_ptr<HttpResponse>& httpResponse); + bool skipResponseBody(const std::shared_ptr<HttpResponse>& httpResponse); HttpDownloadCommand* createHttpDownloadCommand - (const SharedHandle<HttpResponse>& httpResponse, - const SharedHandle<StreamFilter>& streamFilter); + (const std::shared_ptr<HttpResponse>& httpResponse, + const std::shared_ptr<StreamFilter>& streamFilter); void updateLastModifiedTime(const Time& lastModified); @@ -82,23 +82,23 @@ private: // value. If they have same hash type but different hash value, // throws exception. Otherwise returns false. bool checkChecksum - (const SharedHandle<DownloadContext>& dctx, + (const std::shared_ptr<DownloadContext>& dctx, const Checksum& checksum); #endif // ENABLE_MESSAGE_DIGEST protected: bool executeInternal(); bool shouldInflateContentEncoding - (const SharedHandle<HttpResponse>& httpResponse); + (const std::shared_ptr<HttpResponse>& httpResponse); public: HttpResponseCommand(cuid_t cuid, - const SharedHandle<Request>& req, - const SharedHandle<FileEntry>& fileEntry, + const std::shared_ptr<Request>& req, + const std::shared_ptr<FileEntry>& fileEntry, RequestGroup* requestGroup, - const SharedHandle<HttpConnection>& httpConnection, + const std::shared_ptr<HttpConnection>& httpConnection, DownloadEngine* e, - const SharedHandle<SocketCore>& s); + const std::shared_ptr<SocketCore>& s); ~HttpResponseCommand(); }; |
