/* */ #ifndef D_HTTP_DOWNLOAD_COMMAND_H #define D_HTTP_DOWNLOAD_COMMAND_H #include "DownloadCommand.h" namespace aria2 { class HttpResponse; class HttpConnection; class HttpDownloadCommand : public DownloadCommand { private: std::shared_ptr httpResponse_; std::shared_ptr httpConnection_; protected: virtual bool prepareForNextSegment(); virtual int64_t getRequestEndOffset() const; public: HttpDownloadCommand(cuid_t cuid, const std::shared_ptr& req, const std::shared_ptr& fileEntry, RequestGroup* requestGroup, const std::shared_ptr& httpResponse, const std::shared_ptr& httpConnection, DownloadEngine* e, const std::shared_ptr& s); virtual ~HttpDownloadCommand(); }; } // namespace aria2 #endif // D_HTTP_DOWNLOAD_COMMAND_H