/* */ #ifndef D_FEEDBACK_URI_SELECTOR_H #define D_FEEDBACK_URI_SELECTOR_H #include "URISelector.h" #include "SharedHandle.h" namespace aria2 { class ServerStatMan; class FeedbackURISelector:public URISelector { private: SharedHandle serverStatMan_; std::string selectRarer (const std::deque& uris, const std::vector >& usedHosts); std::string selectFaster (const std::deque& uris, const std::vector >& usedHosts); public: FeedbackURISelector(const SharedHandle& serverStatMan); virtual ~FeedbackURISelector(); // This function expects ignoreHosts are ordered in ascending order. virtual std::string select (FileEntry* fileEntry, const std::vector >& usedHosts); }; } // namespace aria2 #endif // D_FEEDBACK_URI_SELECTOR_H