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

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

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed content unit tests. Created 8 years, 2 months 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.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.

Powered by Google App Engine
This is Rietveld 408576698