summaryrefslogtreecommitdiff
path: root/src/AbstractHttpServerResponseCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:12:52 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:20:27 +0900
commitd64089632e82a2548752c7a6baaa68365a795a74 (patch)
tree57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /src/AbstractHttpServerResponseCommand.h
parentc81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff)
parenta7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff)
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/AbstractHttpServerResponseCommand.h')
-rw-r--r--src/AbstractHttpServerResponseCommand.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/AbstractHttpServerResponseCommand.h b/src/AbstractHttpServerResponseCommand.h
index 431351b8..9d07d771 100644
--- a/src/AbstractHttpServerResponseCommand.h
+++ b/src/AbstractHttpServerResponseCommand.h
@@ -57,19 +57,17 @@ private:
bool writeCheck_;
void updateReadWriteCheck();
+
protected:
- DownloadEngine* getDownloadEngine()
- {
- return e_;
- }
+ DownloadEngine* getDownloadEngine() { return e_; }
// Called after content body is completely sent.
virtual void afterSend(const std::shared_ptr<HttpServer>& httpServer,
DownloadEngine* e) = 0;
+
public:
- AbstractHttpServerResponseCommand(cuid_t cuid,
- const std::shared_ptr<HttpServer>& httpServer,
- DownloadEngine* e,
- const std::shared_ptr<SocketCore>& socket);
+ AbstractHttpServerResponseCommand(
+ cuid_t cuid, const std::shared_ptr<HttpServer>& httpServer,
+ DownloadEngine* e, const std::shared_ptr<SocketCore>& socket);
virtual ~AbstractHttpServerResponseCommand();