| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // For continuing a download, the ETAG of the file. | 87 // For continuing a download, the ETAG of the file. |
| 88 std::string etag; | 88 std::string etag; |
| 89 | 89 |
| 90 // True if we should display the 'save as...' UI and prompt the user | 90 // True if we should display the 'save as...' UI and prompt the user |
| 91 // for the download location. | 91 // for the download location. |
| 92 // False if the UI should be suppressed and the download performed to the | 92 // False if the UI should be suppressed and the download performed to the |
| 93 // default location. | 93 // default location. |
| 94 bool prompt_user_for_save_location; | 94 bool prompt_user_for_save_location; |
| 95 | 95 |
| 96 // The charset of the referring page where the download request comes from. | |
| 97 // It's used to construct a suggested filename. | |
| 98 std::string referrer_charset; | |
| 99 | |
| 100 // The download file save info. | 96 // The download file save info. |
| 101 scoped_ptr<content::DownloadSaveInfo> save_info; | 97 scoped_ptr<content::DownloadSaveInfo> save_info; |
| 102 | 98 |
| 103 // The remote IP address where the download was fetched from. Copied from | 99 // The remote IP address where the download was fetched from. Copied from |
| 104 // UrlRequest::GetSocketAddress(). | 100 // UrlRequest::GetSocketAddress(). |
| 105 std::string remote_address; | 101 std::string remote_address; |
| 106 | 102 |
| 107 // The handle to the URLRequest sourcing this download. | 103 // The handle to the URLRequest sourcing this download. |
| 108 DownloadRequestHandle request_handle; | 104 DownloadRequestHandle request_handle; |
| 109 | 105 |
| 110 // The request's |BoundNetLog|, for "source_dependency" linking with the | 106 // The request's |BoundNetLog|, for "source_dependency" linking with the |
| 111 // download item's. | 107 // download item's. |
| 112 const net::BoundNetLog request_bound_net_log; | 108 const net::BoundNetLog request_bound_net_log; |
| 113 | 109 |
| 114 private: | 110 private: |
| 115 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); | 111 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); |
| 116 }; | 112 }; |
| 117 | 113 |
| 118 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| OLD | NEW |