Chromium Code Reviews| 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. |