| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // may be different from |mime_type|, which may be set based on heuristics | 88 // may be different from |mime_type|, which may be set based on heuristics |
| 89 // which may look at the file extension and first few bytes of the file. | 89 // which may look at the file extension and first few bytes of the file. |
| 90 std::string original_mime_type; | 90 std::string original_mime_type; |
| 91 | 91 |
| 92 // True if we should display the 'save as...' UI and prompt the user | 92 // True if we should display the 'save as...' UI and prompt the user |
| 93 // for the download location. | 93 // for the download location. |
| 94 // False if the UI should be supressed and the download performed to the | 94 // False if the UI should be supressed and the download performed to the |
| 95 // default location. | 95 // default location. |
| 96 bool prompt_user_for_save_location; | 96 bool prompt_user_for_save_location; |
| 97 | 97 |
| 98 // Whether this download file is potentially dangerous (ex: exe, dll, ...). | |
| 99 bool is_dangerous_file; | |
| 100 | |
| 101 // If safebrowsing believes this URL leads to malware. | |
| 102 bool is_dangerous_url; | |
| 103 | |
| 104 // The original name for a dangerous download. | 98 // The original name for a dangerous download. |
| 105 FilePath original_name; | 99 FilePath original_name; |
| 106 | 100 |
| 107 // Whether this download is for extension install or not. | 101 // Whether this download is for extension install or not. |
| 108 bool is_extension_install; | 102 bool is_extension_install; |
| 109 | 103 |
| 110 // The charset of the referring page where the download request comes from. | 104 // The charset of the referring page where the download request comes from. |
| 111 // It's used to construct a suggested filename. | 105 // It's used to construct a suggested filename. |
| 112 std::string referrer_charset; | 106 std::string referrer_charset; |
| 113 | 107 |
| 114 // The download file save info. | 108 // The download file save info. |
| 115 DownloadSaveInfo save_info; | 109 DownloadSaveInfo save_info; |
| 116 }; | 110 }; |
| 117 | 111 |
| 118 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 112 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| OLD | NEW |