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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 // The original name for a dangerous download. | 97 // The original name for a dangerous download. |
98 FilePath original_name; | 98 FilePath original_name; |
99 | 99 |
100 // The charset of the referring page where the download request comes from. | 100 // The charset of the referring page where the download request comes from. |
101 // It's used to construct a suggested filename. | 101 // It's used to construct a suggested filename. |
102 std::string referrer_charset; | 102 std::string referrer_charset; |
103 | 103 |
104 // The download file save info. | 104 // The download file save info. |
105 DownloadSaveInfo save_info; | 105 DownloadSaveInfo save_info; |
| 106 |
| 107 // The remote IP address where the download was fetched from. Copied from |
| 108 // UrlRequest::GetSocketAddress(). |
| 109 std::string remote_address; |
106 }; | 110 }; |
107 | 111 |
108 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 112 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
OLD | NEW |