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

Unified Diff: chrome/browser/download/download_util.h

Issue 7484061: Use the suggested name from an anchor's 'download' attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011 Created 9 years, 5 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: chrome/browser/download/download_util.h
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h
index 90f669ab2f7ae7b9133bf686a10fa65c184be026..644853fe87f62eb4fd04a185ccbb9d9ea1598cc7 100644
--- a/chrome/browser/download/download_util.h
+++ b/chrome/browser/download/download_util.h
@@ -66,10 +66,7 @@ void GenerateExtension(const FilePath& file_name,
FilePath::StringType* generated_extension);
// Create a file name based on the response from the server.
-void GenerateFileNameFromRequest(const GURL& url,
- const std::string& content_disposition,
- const std::string& referrer_charset,
- const std::string& mime_type,
+void GenerateFileNameFromRequest(const DownloadItem& download_item,
FilePath* generated_name);
void GenerateFileNameFromSuggestedName(const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698