summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-03 23:42:55 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-03 23:42:55 +0900
commit9a38c102dc4ff4a0a7cc96ccef7cd1400f37eea5 (patch)
tree22623c7b5af1912f58bd4395c4b6ba7ed62da83f /src/HttpResponseCommand.h
parent7e6db8d801973bfc62b80f411f14d1d332a1f7aa (diff)
Use std::unique_ptr for HttpResponse instead of std::shared_ptr
Diffstat (limited to 'src/HttpResponseCommand.h')
-rw-r--r--src/HttpResponseCommand.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h
index 15b6bb87..85a9dfff 100644
--- a/src/HttpResponseCommand.h
+++ b/src/HttpResponseCommand.h
@@ -63,13 +63,13 @@ class HttpResponseCommand : public AbstractCommand {
private:
std::shared_ptr<HttpConnection> httpConnection_;
- bool handleDefaultEncoding(const std::shared_ptr<HttpResponse>& httpResponse);
- bool handleOtherEncoding(const std::shared_ptr<HttpResponse>& httpResponse);
- bool skipResponseBody(const std::shared_ptr<HttpResponse>& httpResponse);
+ bool handleDefaultEncoding(std::unique_ptr<HttpResponse> httpResponse);
+ bool handleOtherEncoding(std::unique_ptr<HttpResponse> httpResponse);
+ bool skipResponseBody(std::unique_ptr<HttpResponse> httpResponse);
std::unique_ptr<HttpDownloadCommand>
createHttpDownloadCommand
- (const std::shared_ptr<HttpResponse>& httpResponse,
+ (std::unique_ptr<HttpResponse> httpResponse,
const std::shared_ptr<StreamFilter>& streamFilter);
void updateLastModifiedTime(const Time& lastModified);
@@ -88,8 +88,7 @@ private:
protected:
bool executeInternal();
- bool shouldInflateContentEncoding
- (const std::shared_ptr<HttpResponse>& httpResponse);
+ bool shouldInflateContentEncoding(HttpResponse* httpResponse);
public:
HttpResponseCommand(cuid_t cuid,