#include "components/download/public/common/download_job.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "components/download/public/common/download_item.h"
#include "components/download/public/common/download_task_runner.h"
namespace download {
DownloadJob::DownloadJob(DownloadItem* download_item,
CancelRequestCallback cancel_request_callback)
: … { … }
DownloadJob::~DownloadJob() = default;
void DownloadJob::Cancel(bool user_cancel) { … }
void DownloadJob::Pause() { … }
void DownloadJob::Resume(bool resume_request) { … }
void DownloadJob::Start(DownloadFile* download_file_,
DownloadFile::InitializeCallback callback,
const DownloadItem::ReceivedSlices& received_slices) { … }
void DownloadJob::OnDownloadFileInitialized(
DownloadFile::InitializeCallback callback,
DownloadInterruptReason result,
int64_t bytes_wasted) { … }
bool DownloadJob::AddInputStream(std::unique_ptr<InputStream> stream,
int64_t offset) { … }
void DownloadJob::CancelRequestWithOffset(int64_t offset) { … }
bool DownloadJob::IsParallelizable() const { … }
bool DownloadJob::IsSavePackageDownload() const { … }
}