From 01e1fdaf495342ae8735ec74eb57f912fa67d535 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Jul 2012 21:07:10 +0900 Subject: Parse torrent file on the fly if --follow-torrent=mem is given In this changes, Bencode parser in bencode2 is removed and the request is delegated to BencodeParser. --- src/DownloadHandlerFactory.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/DownloadHandlerFactory.h') diff --git a/src/DownloadHandlerFactory.h b/src/DownloadHandlerFactory.h index 94550db5..1ec81fd7 100644 --- a/src/DownloadHandlerFactory.h +++ b/src/DownloadHandlerFactory.h @@ -37,10 +37,13 @@ #include "common.h" #include "SharedHandle.h" +#include "MemoryBufferPreDownloadHandler.h" +#ifdef ENABLE_BITTORRENT +# include "MemoryBencodePreDownloadHandler.h" +#endif // ENABLE_BITTORRENT namespace aria2 { -class MemoryBufferPreDownloadHandler; #ifdef ENABLE_METALINK class MetalinkPostDownloadHandler; #endif // ENABLE_METALINK @@ -61,7 +64,7 @@ private: #endif // ENABLE_METALINK #ifdef ENABLE_BITTORRENT - static SharedHandle + static SharedHandle btPreDownloadHandler_; static SharedHandle @@ -80,7 +83,7 @@ public: #endif // ENABLE_METALINK #ifdef ENABLE_BITTORRENT - static SharedHandle + static SharedHandle getBtPreDownloadHandler(); static SharedHandle -- cgit