Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1596)

Unified Diff: content/public/browser/download_manager_delegate.cc

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed signed/unsigned compare issue. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 8826b976ae1d3c216eac88a80bfe617b6424e906..7d1f61207a05cba3bf5e4c75bec8bcc014af17d6 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;
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | content/public/browser/download_url_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698