Index: content/browser/download/download_item_impl_delegate.h |
diff --git a/content/browser/download/download_item_impl_delegate.h b/content/browser/download/download_item_impl_delegate.h |
index be6f890f489257f383bc9e873ae3246e710547f5..c1c59b0521c6db0c7879dff88f759d0a578b8cce 100644 |
--- a/content/browser/download/download_item_impl_delegate.h |
+++ b/content/browser/download/download_item_impl_delegate.h |
@@ -44,11 +44,10 @@ class CONTENT_EXPORT DownloadItemImplDelegate { |
DownloadItemImpl* download, const DownloadTargetCallback& callback); |
// Allows the delegate to delay completion of the download. This function |
- // will call the callback passed when the download is ready for completion. |
- // This may be done immediately, from within the routine itself, or it |
- // may be delayed. |
- // This routine should only be called once per download. |
- virtual void ReadyForDownloadCompletion( |
+ // will either return true (if the download may complete now) or will return |
+ // false and call the provided callback at some future point. This function |
+ // may be called repeatedly. |
+ virtual bool ShouldCompleteDownload( |
DownloadItemImpl* download, |
const base::Closure& complete_callback); |