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

Unified Diff: chrome/browser/history/download_types.h

Issue 2830017: Disallow apps with the wrong content type header. (Closed)
Patch Set: Rebase for checkin. Created 10 years, 6 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/history/download_types.h
diff --git a/chrome/browser/history/download_types.h b/chrome/browser/history/download_types.h
index 50c7e26ecbd679c3d3ceac929b5c6016b7a29370..4db21e4104330d2da9d5f80726701b5cd481f579 100644
--- a/chrome/browser/history/download_types.h
+++ b/chrome/browser/history/download_types.h
@@ -78,6 +78,10 @@ struct DownloadCreateInfo {
int64 db_handle;
std::string content_disposition;
std::string mime_type;
+ // The value of the content type header sent with the downloaded item. It
+ // may be different from |mime_type|, which may be set based on heuristics
+ // which may look at the file extension and first few bytes of the file.
+ std::string original_mime_type;
bool save_as;
// Whether this download is potentially dangerous (ex: exe, dll, ...).
bool is_dangerous;
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/renderer_host/download_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698