diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
| commit | 1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch) | |
| tree | d12047cb37ded1e18d4d5b97844412538beb19ff /src/HttpResponseCommand.h | |
| parent | d82e183d346375ac8a58a298a58728be615f947e (diff) | |
2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std::
prefix to c++
standard classes.
Included string.h where mem* function are used.
Diffstat (limited to 'src/HttpResponseCommand.h')
| -rw-r--r-- | src/HttpResponseCommand.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h index ce474e44..25d2cd80 100644 --- a/src/HttpResponseCommand.h +++ b/src/HttpResponseCommand.h @@ -37,29 +37,32 @@ #include "AbstractCommand.h" +namespace aria2 { + class HttpConnection; -typedef SharedHandle<HttpConnection> HttpConnectionHandle; class HttpDownloadCommand; class HttpResponse; -typedef SharedHandle<HttpResponse> HttpResponseHandle; +class SocketCore; class HttpResponseCommand : public AbstractCommand { private: - HttpConnectionHandle httpConnection; + SharedHandle<HttpConnection> httpConnection; - bool handleDefaultEncoding(const HttpResponseHandle& httpResponse); - bool handleOtherEncoding(const HttpResponseHandle& httpResponse); - HttpDownloadCommand* createHttpDownloadCommand(const HttpResponseHandle& httpResponse); + bool handleDefaultEncoding(const SharedHandle<HttpResponse>& httpResponse); + bool handleOtherEncoding(const SharedHandle<HttpResponse>& httpResponse); + HttpDownloadCommand* createHttpDownloadCommand(const SharedHandle<HttpResponse>& httpResponse); protected: bool executeInternal(); public: HttpResponseCommand(int32_t cuid, - const RequestHandle& req, + const SharedHandle<Request>& req, RequestGroup* requestGroup, - const HttpConnectionHandle& httpConnection, + const SharedHandle<HttpConnection>& httpConnection, DownloadEngine* e, - const SocketHandle& s); + const SharedHandle<SocketCore>& s); ~HttpResponseCommand(); }; +} // namespace aria2 + #endif // _D_HTTP_RESPONSE_COMMAND_H_ |
