Index: content/public/browser/download_manager_delegate.h |
diff --git a/content/public/browser/download_manager_delegate.h b/content/public/browser/download_manager_delegate.h |
index 7c7d85c3310b01536730d919e6f83384b0fedbc8..5d948c65e0f61d9a12007de3835266565e207640 100644 |
--- a/content/public/browser/download_manager_delegate.h |
+++ b/content/public/browser/download_manager_delegate.h |
@@ -74,6 +74,12 @@ class CONTENT_EXPORT DownloadManagerDelegate { |
virtual bool DetermineDownloadTarget(DownloadItem* item, |
const DownloadTargetCallback& callback); |
+ // Gets the intermediate file's length. |
+ // |path| is the final name of the file, unless |temporary| is true, in which |
+ // case |path| is the temporary file name. |
+ virtual int64 GetIntermediateFileLength(const FilePath& path, |
+ bool temporary); |
+ |
// Called when the download system wants to alert a WebContents that a |
// download has started, but the TabConetnts has gone away. This lets an |
// delegate return an alternative WebContents. The delegate can return NULL. |