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 13b395721c7d6b7cef81f083a95beb3d38004a04..6acb96026e5f56238c18ad7fb083ed8ffd2d343c 100644 |
--- a/content/public/browser/download_manager_delegate.h |
+++ b/content/public/browser/download_manager_delegate.h |
@@ -119,6 +119,18 @@ class CONTENT_EXPORT DownloadManagerDelegate { |
const SavePackagePathPickedCallback& callback) { |
} |
+ // Sanitize a filename that's going to be used for saving a subresource of a |
+ // SavePackage. |
+ // |
+ // If the delegate does nothing, the default filename already populated in |
+ // |filename| will be used. Otherwise, the delegate can update |filename| to |
+ // the desired filename. |
+ // |
+ // |filename| contains a basename with an extension, but without a path. This |
+ // should be the case on return as well. I.e. |filename| cannot specify a |
+ // relative path. |
+ virtual void SanitizeSavePackageResourceName(base::FilePath* filename) {} |
+ |
// Opens the file associated with this download. |
virtual void OpenDownload(DownloadItem* download) {} |