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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Download creation struct used for querying the history service. 5 // Download creation struct used for querying the history service.
6 6
7 #ifndef CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_ 7 #ifndef CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_
8 #define CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_ 8 #define CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 int64 received_bytes; 71 int64 received_bytes;
72 int64 total_bytes; 72 int64 total_bytes;
73 int32 state; 73 int32 state;
74 int32 download_id; 74 int32 download_id;
75 int child_id; 75 int child_id;
76 int render_view_id; 76 int render_view_id;
77 int request_id; 77 int request_id;
78 int64 db_handle; 78 int64 db_handle;
79 std::string content_disposition; 79 std::string content_disposition;
80 std::string mime_type; 80 std::string mime_type;
81 // The value of the content type header sent with the downloaded item. It
82 // may be different from |mime_type|, which may be set based on heuristics
83 // which may look at the file extension and first few bytes of the file.
84 std::string original_mime_type;
81 bool save_as; 85 bool save_as;
82 // Whether this download is potentially dangerous (ex: exe, dll, ...). 86 // Whether this download is potentially dangerous (ex: exe, dll, ...).
83 bool is_dangerous; 87 bool is_dangerous;
84 // The original name for a dangerous download. 88 // The original name for a dangerous download.
85 FilePath original_name; 89 FilePath original_name;
86 // Whether this download is for extension install or not. 90 // Whether this download is for extension install or not.
87 bool is_extension_install; 91 bool is_extension_install;
88 // The charset of the referring page where the download request comes from. 92 // The charset of the referring page where the download request comes from.
89 // It's used to construct a suggested filename. 93 // It's used to construct a suggested filename.
90 std::string referrer_charset; 94 std::string referrer_charset;
91 // The download file save info. 95 // The download file save info.
92 DownloadSaveInfo save_info; 96 DownloadSaveInfo save_info;
93 }; 97 };
94 98
95 #endif // CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_ 99 #endif // CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_
OLDNEW
« 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