#include "components/background_fetch/job_details.h"
#include "content/public/browser/background_fetch_description.h"
namespace background_fetch {
JobDetails::RequestData::RequestData(bool has_upload_data)
: … { … }
JobDetails::RequestData::~RequestData() = default;
JobDetails::JobDetails() = default;
JobDetails::~JobDetails() = default;
void JobDetails::MarkJobAsStarted() { … }
void JobDetails::UpdateJobOnDownloadComplete(const std::string& download_guid) { … }
uint64_t JobDetails::GetTotalBytes() const { … }
uint64_t JobDetails::GetProcessedBytes() const { … }
uint64_t JobDetails::GetDownloadedBytes() const { … }
uint64_t JobDetails::GetInProgressBytes() const { … }
bool JobDetails::IsComplete() const { … }
void JobDetails::UpdateInProgressBytes(const std::string& download_guid,
uint64_t bytes_uploaded,
uint64_t bytes_downloaded) { … }
bool JobDetails::ShouldReportProgressBySize() const { … }
}