| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // The download file save info. | 100 // The download file save info. |
| 101 content::DownloadSaveInfo save_info; | 101 content::DownloadSaveInfo save_info; |
| 102 | 102 |
| 103 // The remote IP address where the download was fetched from. Copied from | 103 // The remote IP address where the download was fetched from. Copied from |
| 104 // UrlRequest::GetSocketAddress(). | 104 // UrlRequest::GetSocketAddress(). |
| 105 std::string remote_address; | 105 std::string remote_address; |
| 106 | 106 |
| 107 // The handle to the URLRequest sourcing this download. | 107 // The handle to the URLRequest sourcing this download. |
| 108 DownloadRequestHandle request_handle; | 108 DownloadRequestHandle request_handle; |
| 109 | 109 |
| 110 // Default directory to use for this download. The final target path may not | |
| 111 // be determined until much later. In the meantime, this directory (if | |
| 112 // non-empty) should be used to store teh download file. | |
| 113 // TODO(asanka,rdsmith): Get rid of this when we start creating the | |
| 114 // DownloadFile on the UI thread. | |
| 115 FilePath default_download_directory; | |
| 116 | |
| 117 // The request's |BoundNetLog|, for "source_dependency" linking with the | 110 // The request's |BoundNetLog|, for "source_dependency" linking with the |
| 118 // download item's. | 111 // download item's. |
| 119 const net::BoundNetLog request_bound_net_log; | 112 const net::BoundNetLog request_bound_net_log; |
| 120 }; | 113 }; |
| 121 | 114 |
| 122 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| OLD | NEW |