diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-07-26 21:07:10 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-07-26 21:07:10 +0900 |
| commit | 01e1fdaf495342ae8735ec74eb57f912fa67d535 (patch) | |
| tree | e5573e8aa7f3786d8364c76cabf5397f7473ed2f /src/DownloadHandlerFactory.h | |
| parent | 7176107414f73d7fe0cfd7d5ce516aa41a2f0b22 (diff) | |
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.
Diffstat (limited to 'src/DownloadHandlerFactory.h')
| -rw-r--r-- | src/DownloadHandlerFactory.h | 9 |
1 files changed, 6 insertions, 3 deletions
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<MemoryBufferPreDownloadHandler> + static SharedHandle<bittorrent::MemoryBencodePreDownloadHandler> btPreDownloadHandler_; static SharedHandle<BtPostDownloadHandler> @@ -80,7 +83,7 @@ public: #endif // ENABLE_METALINK #ifdef ENABLE_BITTORRENT - static SharedHandle<MemoryBufferPreDownloadHandler> + static SharedHandle<bittorrent::MemoryBencodePreDownloadHandler> getBtPreDownloadHandler(); static SharedHandle<BtPostDownloadHandler> |
