/* */ #include "StreamCheckIntegrityEntry.h" #include "RequestGroup.h" #include "DownloadEngine.h" #include "StreamFileAllocationEntry.h" #include "prefs.h" #include "Option.h" #include "PieceStorage.h" namespace aria2 { StreamCheckIntegrityEntry::StreamCheckIntegrityEntry( RequestGroup* requestGroup, std::unique_ptr nextCommand) : PieceHashCheckIntegrityEntry(requestGroup, std::move(nextCommand)) { } StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() = default; void StreamCheckIntegrityEntry::onDownloadIncomplete( std::vector>& commands, DownloadEngine* e) { auto& ps = getRequestGroup()->getPieceStorage(); ps->onDownloadIncomplete(); if (getRequestGroup()->getOption()->getAsBool(PREF_HASH_CHECK_ONLY)) { return; } proceedFileAllocation(commands, make_unique( getRequestGroup(), popNextCommand()), e); } void StreamCheckIntegrityEntry::onDownloadFinished( std::vector>& commands, DownloadEngine* e) { } } // namespace aria2