diff options
Diffstat (limited to 'src/AbstractCommand.h')
| -rw-r--r-- | src/AbstractCommand.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h index ba7a7aa4..d7ced6d2 100644 --- a/src/AbstractCommand.h +++ b/src/AbstractCommand.h @@ -39,12 +39,12 @@ #include "SharedHandle.h" #include "TimeA2.h" #include "FileEntry.h" +#include "RequestGroup.h" namespace aria2 { class Request; class DownloadEngine; -class RequestGroup; class Segment; class Exception; class SocketCore; @@ -122,6 +122,11 @@ protected: const std::string& resolveProxyMethod(const std::string& protocol) const; const SharedHandle<Option>& getOption() const; + + const SharedHandle<DownloadContext>& getDownloadContext() const + { + return _requestGroup->getDownloadContext(); + } private: bool checkSocketIsReadable; bool checkSocketIsWritable; |
