#include "content/browser/download/save_file.h"
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/notreached.h"
#include "components/download/public/common/download_item.h"
#include "components/download/public/common/download_task_runner.h"
namespace content {
SaveFile::SaveFile(std::unique_ptr<SaveFileCreateInfo> info,
bool calculate_hash)
: … { … }
SaveFile::~SaveFile() { … }
download::DownloadInterruptReason SaveFile::Initialize() { … }
download::DownloadInterruptReason SaveFile::AppendDataToFile(const char* data,
size_t data_len) { … }
download::DownloadInterruptReason SaveFile::Rename(
const base::FilePath& full_path) { … }
void SaveFile::Detach() { … }
void SaveFile::Cancel() { … }
void SaveFile::Finish() { … }
void SaveFile::AnnotateWithSourceInformation(
const std::string& client_guid,
const GURL& source_url,
const GURL& referrer_url,
mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine,
download::BaseFile::OnAnnotationDoneCallback on_annotation_done_callback) { … }
base::FilePath SaveFile::FullPath() const { … }
bool SaveFile::InProgress() const { … }
int64_t SaveFile::BytesSoFar() const { … }
std::string SaveFile::DebugString() const { … }
}