#include "components/download/public/common/download_item_impl_delegate.h"
#include "base/check_op.h"
#include "base/functional/callback_helpers.h"
#include "build/build_config.h"
#include "components/download/public/common/download_danger_type.h"
#include "components/download/public/common/download_item_impl.h"
#include "components/download/public/common/download_item_rename_handler.h"
#include "components/download/public/common/download_target_info.h"
#if BUILDFLAG(IS_ANDROID)
#include "components/download/public/common/android/auto_resumption_handler.h"
#endif
namespace download {
DownloadItemImplDelegate::DownloadItemImplDelegate() : … { … }
DownloadItemImplDelegate::~DownloadItemImplDelegate() { … }
void DownloadItemImplDelegate::Attach() { … }
void DownloadItemImplDelegate::Detach() { … }
void DownloadItemImplDelegate::DetermineDownloadTarget(
DownloadItemImpl* download,
DownloadTargetCallback callback) { … }
bool DownloadItemImplDelegate::ShouldCompleteDownload(
DownloadItemImpl* download,
base::OnceClosure complete_callback) { … }
bool DownloadItemImplDelegate::ShouldOpenDownload(
DownloadItemImpl* download,
ShouldOpenDownloadCallback callback) { … }
bool DownloadItemImplDelegate::ShouldAutomaticallyOpenFile(
const GURL& url,
const base::FilePath& path) { … }
bool DownloadItemImplDelegate::ShouldAutomaticallyOpenFileByPolicy(
const GURL& url,
const base::FilePath& path) { … }
void DownloadItemImplDelegate::CheckForFileRemoval(
DownloadItemImpl* download_item) { … }
std::string DownloadItemImplDelegate::GetApplicationClientIdForFileScanning()
const { … }
void DownloadItemImplDelegate::ResumeInterruptedDownload(
std::unique_ptr<DownloadUrlParameters> params,
const std::string& serialized_embedder_download_data) { … }
void DownloadItemImplDelegate::UpdatePersistence(DownloadItemImpl* download) { … }
void DownloadItemImplDelegate::OpenDownload(DownloadItemImpl* download) { … }
void DownloadItemImplDelegate::ShowDownloadInShell(DownloadItemImpl* download) { … }
void DownloadItemImplDelegate::DownloadRemoved(DownloadItemImpl* download) { … }
void DownloadItemImplDelegate::DownloadInterrupted(DownloadItemImpl* download) { … }
bool DownloadItemImplDelegate::IsOffTheRecord() const { … }
bool DownloadItemImplDelegate::IsActiveNetworkMetered() const { … }
void DownloadItemImplDelegate::ReportBytesWasted(DownloadItemImpl* download) { … }
void DownloadItemImplDelegate::BindWakeLockProvider(
mojo::PendingReceiver<device::mojom::WakeLockProvider> receiver) { … }
QuarantineConnectionCallback
DownloadItemImplDelegate::GetQuarantineConnectionCallback() { … }
std::unique_ptr<DownloadItemRenameHandler>
DownloadItemImplDelegate::GetRenameHandlerForDownload(
DownloadItemImpl* download_item) { … }
}