| 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 #include "chrome/browser/download/download_item.h" | 5 #include "chrome/browser/download/download_item.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/i18n/case_conversion.h" | 10 #include "base/i18n/case_conversion.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 bool is_otr) | 155 bool is_otr) |
| 156 : state_info_(info.original_name, info.save_info.file_path, | 156 : state_info_(info.original_name, info.save_info.file_path, |
| 157 info.has_user_gesture, info.prompt_user_for_save_location, | 157 info.has_user_gesture, info.prompt_user_for_save_location, |
| 158 info.path_uniquifier, false, false, | 158 info.path_uniquifier, false, false, |
| 159 info.is_extension_install), | 159 info.is_extension_install), |
| 160 request_handle_(info.request_handle), | 160 request_handle_(info.request_handle), |
| 161 download_id_(info.download_id), | 161 download_id_(info.download_id), |
| 162 full_path_(info.path), | 162 full_path_(info.path), |
| 163 url_chain_(info.url_chain), | 163 url_chain_(info.url_chain), |
| 164 referrer_url_(info.referrer_url), | 164 referrer_url_(info.referrer_url), |
| 165 suggested_filename_(UTF16ToUTF8(info.save_info.suggested_name)), |
| 165 content_disposition_(info.content_disposition), | 166 content_disposition_(info.content_disposition), |
| 166 mime_type_(info.mime_type), | 167 mime_type_(info.mime_type), |
| 167 original_mime_type_(info.original_mime_type), | 168 original_mime_type_(info.original_mime_type), |
| 168 referrer_charset_(info.referrer_charset), | 169 referrer_charset_(info.referrer_charset), |
| 169 total_bytes_(info.total_bytes), | 170 total_bytes_(info.total_bytes), |
| 170 received_bytes_(0), | 171 received_bytes_(0), |
| 171 last_os_error_(0), | 172 last_os_error_(0), |
| 172 start_tick_(base::TimeTicks::Now()), | 173 start_tick_(base::TimeTicks::Now()), |
| 173 state_(IN_PROGRESS), | 174 state_(IN_PROGRESS), |
| 174 start_time_(info.start_time), | 175 start_time_(info.start_time), |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 state_info_.target_name.value().c_str(), | 858 state_info_.target_name.value().c_str(), |
| 858 full_path().value().c_str()); | 859 full_path().value().c_str()); |
| 859 } else { | 860 } else { |
| 860 description += base::StringPrintf(" url = \"%s\"", url_list.c_str()); | 861 description += base::StringPrintf(" url = \"%s\"", url_list.c_str()); |
| 861 } | 862 } |
| 862 | 863 |
| 863 description += " }"; | 864 description += " }"; |
| 864 | 865 |
| 865 return description; | 866 return description; |
| 866 } | 867 } |
| OLD | NEW |