| OLD | NEW |
| 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_DOWNLOAD_TYPES_H_ | 7 #ifndef CHROME_BROWSER_DOWNLOAD_TYPES_H_ |
| 8 #define CHROME_BROWSER_DOWNLOAD_TYPES_H_ | 8 #define CHROME_BROWSER_DOWNLOAD_TYPES_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 int render_view_id; | 62 int render_view_id; |
| 63 int request_id; | 63 int request_id; |
| 64 int64 db_handle; | 64 int64 db_handle; |
| 65 std::string content_disposition; | 65 std::string content_disposition; |
| 66 std::string mime_type; | 66 std::string mime_type; |
| 67 bool save_as; | 67 bool save_as; |
| 68 // Whether this download is potentially dangerous (ex: exe, dll, ...). | 68 // Whether this download is potentially dangerous (ex: exe, dll, ...). |
| 69 bool is_dangerous; | 69 bool is_dangerous; |
| 70 // The original name for a dangerous download. | 70 // The original name for a dangerous download. |
| 71 FilePath original_name; | 71 FilePath original_name; |
| 72 // The charset of the referring page where the download request comes from. |
| 73 // It's used to construct a suggested filename. |
| 74 std::string referrer_charset; |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 #endif // CHROME_BROWSER_DOWNLOAD_TYPES_H_ | 77 #endif // CHROME_BROWSER_DOWNLOAD_TYPES_H_ |
| OLD | NEW |