Chromium Code Reviews| Index: chrome/browser/download/download_util.h |
| diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h |
| index 707dc07ae822e9dd8ea9152bf7837f39166e1303..5bcf60a03121698772c7cf81cbb927e7a688ca8e 100644 |
| --- a/chrome/browser/download/download_util.h |
| +++ b/chrome/browser/download/download_util.h |
| @@ -61,8 +61,11 @@ void GenerateExtension(const FilePath& file_name, |
| FilePath::StringType* generated_extension); |
| // Create a file name based on the response from the server. |
| -void GenerateFileNameFromInfo(DownloadCreateInfo* info, |
| - FilePath* generated_name); |
| +void GenerateFileNameFromRequest(const GURL& url, |
| + const std::string& content_disposition, |
| + const std::string& referrer_charset, |
| + const std::string& mime_type, |
| + FilePath* generated_name); |
|
Paweł Hajdan Jr.
2011/05/19 16:18:25
Instead of having a return parameter and void retu
ahendrickson
2011/05/19 20:16:49
I think that's for another CL.
Paweł Hajdan Jr.
2011/05/20 09:04:42
Okay, I don't want to increase the already high bu
|
| void GenerateFileNameFromSuggestedName(const GURL& url, |
| const std::string& suggested_name, |
| @@ -271,9 +274,15 @@ FilePath GetCrDownloadPath(const FilePath& suggested_path); |
| // Returns true if this download should show the "dangerous file" warning. |
| // Various factors are considered, such as the type of the file, whether a |
| -// user action initiated the download, and whether the user has explictly |
| +// user action initiated the download, and whether the user has explicitly |
| // marked the file type as "auto open". |
| -bool IsDangerous(DownloadCreateInfo* info, Profile* profile, bool auto_open); |
| +bool IsDangerous(const GURL& url, |
|
Paweł Hajdan Jr.
2011/05/19 16:18:25
This has a lot of parameters now, and two bool par
ahendrickson
2011/05/19 20:16:49
I used to have a DownloadRequestInfo structure tha
Paweł Hajdan Jr.
2011/05/20 09:04:42
Hmm, okay, I trust this judgment.
Randy Smith (Not in Mondays)
2011/05/20 19:49:29
Let me suggest an alternative (Pawel, your opinion
ahendrickson
2011/05/20 22:12:44
Done.
Paweł Hajdan Jr.
2011/05/23 14:04:23
Sounds good to me.
|
| + const GURL& referrer_url, |
| + const FilePath& suggested_path, |
| + bool has_user_gesture, |
| + bool is_extension_install, |
| + Profile* profile, |
| + bool auto_open); |
| } // namespace download_util |