Index: content/public/browser/download_manager_delegate.cc |
diff --git a/content/public/browser/download_manager_delegate.cc b/content/public/browser/download_manager_delegate.cc |
index 1896874bad123f937ea7ad6741cbd325617a0098..3c126e536c574a82169430a5830c49006f3e2966 100644 |
--- a/content/public/browser/download_manager_delegate.cc |
+++ b/content/public/browser/download_manager_delegate.cc |
@@ -4,6 +4,7 @@ |
#include "content/public/browser/download_manager_delegate.h" |
+#include "base/file_util.h" |
#include "content/public/browser/download_id.h" |
#include "content/public/browser/download_item.h" |
@@ -19,6 +20,16 @@ bool DownloadManagerDelegate::DetermineDownloadTarget( |
return false; |
} |
+int64 DownloadManagerDelegate::GetIntermediateFileLength( |
+ const FilePath& path, bool temporary) { |
+ // Validate the start offset. |
+ int64 end = 0; |
+ if (file_util::GetFileSize(path, &end)) { |
+ return end; |
+ } |
+ return 0; |
+} |
+ |
WebContents* DownloadManagerDelegate:: |
GetAlternativeWebContentsToNotifyForDownload() { |
return NULL; |