| 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_HISTORY_DOWNLOAD_CREATE_INFO_H_ | 7 #ifndef CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ |
| 8 #define CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ | 8 #define CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // which may look at the file extension and first few bytes of the file. | 55 // which may look at the file extension and first few bytes of the file. |
| 56 std::string original_mime_type; | 56 std::string original_mime_type; |
| 57 | 57 |
| 58 // True if we should display the 'save as...' UI and prompt the user | 58 // True if we should display the 'save as...' UI and prompt the user |
| 59 // for the download location. | 59 // for the download location. |
| 60 // False if the UI should be supressed and the download performed to the | 60 // False if the UI should be supressed and the download performed to the |
| 61 // default location. | 61 // default location. |
| 62 bool prompt_user_for_save_location; | 62 bool prompt_user_for_save_location; |
| 63 // Whether this download is potentially dangerous (ex: exe, dll, ...). | 63 // Whether this download is potentially dangerous (ex: exe, dll, ...). |
| 64 bool is_dangerous; | 64 bool is_dangerous; |
| 65 // Partial download in progress. |
| 66 bool is_partial_download; |
| 65 // The original name for a dangerous download. | 67 // The original name for a dangerous download. |
| 66 FilePath original_name; | 68 FilePath original_name; |
| 67 // Whether this download is for extension install or not. | 69 // Whether this download is for extension install or not. |
| 68 bool is_extension_install; | 70 bool is_extension_install; |
| 69 // The charset of the referring page where the download request comes from. | 71 // The charset of the referring page where the download request comes from. |
| 70 // It's used to construct a suggested filename. | 72 // It's used to construct a suggested filename. |
| 71 std::string referrer_charset; | 73 std::string referrer_charset; |
| 72 // The download file save info. | 74 // The download file save info. |
| 73 DownloadSaveInfo save_info; | 75 DownloadSaveInfo save_info; |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 #endif // CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_ | 78 #endif // CHROME_BROWSER_HISTORY_DOWNLOAD_TYPES_H_ |
| OLD | NEW |