Chromium Code Reviews| 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_ITEM_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 238 // The handle to the request information. Used for operations outside the | 238 // The handle to the request information. Used for operations outside the |
| 239 // download system. | 239 // download system. |
| 240 scoped_ptr<DownloadRequestHandleInterface> request_handle_; | 240 scoped_ptr<DownloadRequestHandleInterface> request_handle_; |
| 241 | 241 |
| 242 // Download ID assigned by DownloadResourceHandler. | 242 // Download ID assigned by DownloadResourceHandler. |
| 243 content::DownloadId download_id_; | 243 content::DownloadId download_id_; |
| 244 | 244 |
| 245 // Full path to the downloaded or downloading file. | 245 // Full path to the downloaded or downloading file. |
| 246 FilePath full_path_; | 246 FilePath full_path_; |
| 247 | 247 |
| 248 // A number that should be appended to the path to make it unique, or 0 if the | |
| 249 // path should be used as is. | |
| 250 int path_uniquifier_; | |
| 251 | |
| 252 // The chain of redirects that leading up to and including the final URL. | 248 // The chain of redirects that leading up to and including the final URL. |
| 253 std::vector<GURL> url_chain_; | 249 std::vector<GURL> url_chain_; |
| 254 | 250 |
| 255 // The URL of the page that initiated the download. | 251 // The URL of the page that initiated the download. |
| 256 GURL referrer_url_; | 252 GURL referrer_url_; |
| 257 | 253 |
| 258 // Suggested filename in 'download' attribute of an anchor. Details: | 254 // Filename suggestion from DownloadSaveInfo. It could, among others, be the |
| 255 // suggested filename in 'download' attribute of an anchor. Details: | |
|
Randy Smith (Not in Mondays)
2012/02/08 18:53:54
Just for my curiosity--are you familiar with the c
asanka
2012/02/08 19:02:43
This is in RenderMessageFilter::OnDownloadUrl() (c
| |
| 259 // http://www.whatwg.org/specs/web-apps/current-work/#downloading-hyperlinks | 256 // http://www.whatwg.org/specs/web-apps/current-work/#downloading-hyperlinks |
| 260 std::string suggested_filename_; | 257 std::string suggested_filename_; |
| 261 | 258 |
| 262 // Information from the request. | 259 // Information from the request. |
| 263 // Content-disposition field from the header. | 260 // Content-disposition field from the header. |
| 264 std::string content_disposition_; | 261 std::string content_disposition_; |
| 265 | 262 |
| 266 // Mime-type from the header. Subject to change. | 263 // Mime-type from the header. Subject to change. |
| 267 std::string mime_type_; | 264 std::string mime_type_; |
| 268 | 265 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 353 | 350 |
| 354 // True if we've saved all the data for the download. | 351 // True if we've saved all the data for the download. |
| 355 bool all_data_saved_; | 352 bool all_data_saved_; |
| 356 | 353 |
| 357 // Did the user open the item either directly or indirectly (such as by | 354 // Did the user open the item either directly or indirectly (such as by |
| 358 // setting always open files of this type)? The shelf also sets this field | 355 // setting always open files of this type)? The shelf also sets this field |
| 359 // when the user closes the shelf before the item has been opened but should | 356 // when the user closes the shelf before the item has been opened but should |
| 360 // be treated as though the user opened it. | 357 // be treated as though the user opened it. |
| 361 bool opened_; | 358 bool opened_; |
| 362 | 359 |
| 363 // Do we actual open downloads when requested? For testing purposes | 360 // Do we actually open downloads when requested? For testing purposes only. |
| 364 // only. | |
| 365 bool open_enabled_; | 361 bool open_enabled_; |
| 366 | 362 |
| 367 // Did the delegate delay calling Complete on this download? | 363 // Did the delegate delay calling Complete on this download? |
| 368 bool delegate_delayed_complete_; | 364 bool delegate_delayed_complete_; |
| 369 | 365 |
| 370 // External Data storage. All objects in the store | 366 // External Data storage. All objects in the store |
| 371 // are owned by the DownloadItemImpl. | 367 // are owned by the DownloadItemImpl. |
| 372 std::map<const void*, ExternalData*> external_data_map_; | 368 std::map<const void*, ExternalData*> external_data_map_; |
| 373 | 369 |
| 374 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 370 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
| 375 }; | 371 }; |
| 376 | 372 |
| 377 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 373 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| OLD | NEW |