/* */ #ifndef D_FEEDBACK_URI_SELECTOR_H #define D_FEEDBACK_URI_SELECTOR_H #include "URISelector.h" #include namespace aria2 { class ServerStatMan; class FeedbackURISelector : public URISelector { private: std::shared_ptr 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 std::shared_ptr& serverStatMan); virtual ~FeedbackURISelector(); // This function expects ignoreHosts are ordered in ascending order. virtual std::string select(FileEntry* fileEntry, const std::vector>& usedHosts) CXX11_OVERRIDE; }; } // namespace aria2 #endif // D_FEEDBACK_URI_SELECTOR_H