move DownloadInterruptReasons from content/ to components/download
https://chromium-review.googlesource.com/897967
This commit is contained in:
parent
7fc8814d13
commit
160b165358
2 changed files with 5 additions and 5 deletions
|
@ -437,7 +437,7 @@ void DownloadIdCallback(content::DownloadManager* download_manager,
|
||||||
last_modified, offset, length, std::string(),
|
last_modified, offset, length, std::string(),
|
||||||
download::DownloadItem::INTERRUPTED,
|
download::DownloadItem::INTERRUPTED,
|
||||||
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
|
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
|
||||||
content::DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT, false, base::Time(),
|
download::DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT, false, base::Time(),
|
||||||
false, std::vector<download::DownloadItem::ReceivedSlice>());
|
false, std::vector<download::DownloadItem::ReceivedSlice>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,8 +121,8 @@ void AtomDownloadManagerDelegate::OnDownloadPathGenerated(
|
||||||
// If user cancels the file save dialog, run the callback with empty FilePath.
|
// If user cancels the file save dialog, run the callback with empty FilePath.
|
||||||
callback.Run(path, download::DownloadItem::TARGET_DISPOSITION_PROMPT,
|
callback.Run(path, download::DownloadItem::TARGET_DISPOSITION_PROMPT,
|
||||||
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, path,
|
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, path,
|
||||||
path.empty() ? content::DOWNLOAD_INTERRUPT_REASON_USER_CANCELED
|
path.empty() ? download::DOWNLOAD_INTERRUPT_REASON_USER_CANCELED
|
||||||
: content::DOWNLOAD_INTERRUPT_REASON_NONE);
|
: download::DOWNLOAD_INTERRUPT_REASON_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AtomDownloadManagerDelegate::Shutdown() {
|
void AtomDownloadManagerDelegate::Shutdown() {
|
||||||
|
@ -140,7 +140,7 @@ bool AtomDownloadManagerDelegate::DetermineDownloadTarget(
|
||||||
download::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
|
download::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
|
||||||
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
|
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
|
||||||
download->GetForcedFilePath(),
|
download->GetForcedFilePath(),
|
||||||
content::DOWNLOAD_INTERRUPT_REASON_NONE);
|
download::DOWNLOAD_INTERRUPT_REASON_NONE);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ bool AtomDownloadManagerDelegate::DetermineDownloadTarget(
|
||||||
callback.Run(save_path,
|
callback.Run(save_path,
|
||||||
download::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
|
download::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
|
||||||
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
|
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
|
||||||
save_path, content::DOWNLOAD_INTERRUPT_REASON_NONE);
|
save_path, download::DOWNLOAD_INTERRUPT_REASON_NONE);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue