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

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

Issue 2618743006: Use previous target path when resuming a download after crash (Closed)
Patch Set: adding a helper function to get last used target path Created 3 years, 11 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_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 32963bfd476415a5b22a75857900d68b462c7527..c6049115528163a58ca591f48de922bd564114b9 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -282,6 +282,12 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// return the path requested.
virtual const base::FilePath& GetForcedFilePath() const = 0;
+ // Get the target path that was used most recently. It could be either the
+ // forced file path, or the target file path, if any one of them is provided.
+ virtual base::FilePath GetLastUsedTargetPath() const {
asanka 2017/01/10 19:34:19 = 0. But then again we shouldn't have this method
qinmin 2017/01/10 22:06:29 Done.
+ return base::FilePath();
+ }
+
// Returns the file-name that should be reported to the user. If a display
// name has been explicitly set using SetDisplayName(), this function returns
// that display name. Otherwise returns the final target filename.

Powered by Google App Engine
This is Rietveld 408576698