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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 96 // The charset of the referring page where the download request comes from. |
97 // It's used to construct a suggested filename. | 97 // It's used to construct a suggested filename. |
98 std::string referrer_charset; | 98 std::string referrer_charset; |
99 | 99 |
100 // The download file save info. | 100 // The download file save info. |
101 content::DownloadSaveInfo save_info; | 101 scoped_ptr<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 | 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 | 111 // be determined until much later. In the meantime, this directory (if |
112 // non-empty) should be used to store teh download file. | 112 // non-empty) should be used to store teh download file. |
113 // TODO(asanka,rdsmith): Get rid of this when we start creating the | 113 // TODO(asanka,rdsmith): Get rid of this when we start creating the |
114 // DownloadFile on the UI thread. | 114 // DownloadFile on the UI thread. |
115 FilePath default_download_directory; | 115 FilePath default_download_directory; |
116 | 116 |
117 // The request's |BoundNetLog|, for "source_dependency" linking with the | 117 // The request's |BoundNetLog|, for "source_dependency" linking with the |
118 // download item's. | 118 // download item's. |
119 const net::BoundNetLog request_bound_net_log; | 119 const net::BoundNetLog request_bound_net_log; |
| 120 |
| 121 private: |
| 122 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); |
120 }; | 123 }; |
121 | 124 |
122 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 125 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
OLD | NEW |