| 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 CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 6 #define CONTENT_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // True if we should display the 'save as...' UI and prompt the user | 94 // True if we should display the 'save as...' UI and prompt the user |
| 95 // for the download location. | 95 // for the download location. |
| 96 // False if the UI should be suppressed and the download performed to the | 96 // False if the UI should be suppressed and the download performed to the |
| 97 // default location. | 97 // default location. |
| 98 bool prompt_user_for_save_location; | 98 bool prompt_user_for_save_location; |
| 99 | 99 |
| 100 // The original name for a dangerous download. | 100 // The original name for a dangerous download. |
| 101 FilePath original_name; | 101 FilePath original_name; |
| 102 | 102 |
| 103 // The charset of the referring page where the download request comes from. | 103 // The user's default charset. It's used to construct a suggested filename. |
| 104 // It's used to construct a suggested filename. | 104 std::string default_charset; |
| 105 std::string referrer_charset; | |
| 106 | 105 |
| 107 // The download file save info. | 106 // The download file save info. |
| 108 DownloadSaveInfo save_info; | 107 DownloadSaveInfo save_info; |
| 109 | 108 |
| 110 // The remote IP address where the download was fetched from. Copied from | 109 // The remote IP address where the download was fetched from. Copied from |
| 111 // UrlRequest::GetSocketAddress(). | 110 // UrlRequest::GetSocketAddress(). |
| 112 std::string remote_address; | 111 std::string remote_address; |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| OLD | NEW |