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 831d4d4d9e564377c7052f7ba901c11d6a12344e..5855e7b5a20eab209f02817d89e44459669747c2 100644 |
--- a/content/public/browser/download_manager_delegate.h |
+++ b/content/public/browser/download_manager_delegate.h |
@@ -71,6 +71,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. |