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

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

Issue 6969009: Reduced the lifetime of DownloadCreateInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stupid clang! Created 9 years, 7 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
« no previous file with comments | « chrome/browser/download/download_state_info.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3fedb5abfc96b2c1947f8fc5a76c7a05f6ebeca2 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);
void GenerateFileNameFromSuggestedName(const GURL& url,
const std::string& suggested_name,
@@ -269,12 +272,6 @@ void EraseUniqueDownloadFiles(const FilePath& path_prefix);
// Returns a .crdownload intermediate path for the |suggested_path|.
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
-// marked the file type as "auto open".
-bool IsDangerous(DownloadCreateInfo* info, Profile* profile, bool auto_open);
-
} // namespace download_util
#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_
« no previous file with comments | « chrome/browser/download/download_state_info.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698