/* */ #ifndef HTTP_PROXY_REQUEST_CONNECT_CHAIN_H #define HTTP_PROXY_REQUEST_CONNECT_CHAIN_H #include "ControlChain.h" #include "ConnectCommand.h" #include "DownloadEngine.h" #include "HttpProxyRequestCommand.h" namespace aria2 { struct HttpProxyRequestConnectChain : public ControlChain { HttpProxyRequestConnectChain() {} virtual ~HttpProxyRequestConnectChain() {} virtual int run(ConnectCommand* t, DownloadEngine* e) { HttpProxyRequestCommand* c = new HttpProxyRequestCommand (t->getCuid(), t->getRequest(), t->getFileEntry(), t->getRequestGroup(), e, t->getProxyRequest(), t->getSocket()); c->setStatus(Command::STATUS_ONESHOT_REALTIME); e->setNoWait(true); e->addCommand(c); return 0; } }; } // namespace aria2 #endif // HTTP_PROXY_REQUEST_CONNECT_CHAIN_H