| 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_file.h" | 5 #include "chrome/browser/download/download_file.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| 11 #include "chrome/browser/download/download_create_info.h" |
| 11 #include "chrome/browser/download/download_manager.h" | 12 #include "chrome/browser/download/download_manager.h" |
| 12 #include "chrome/browser/download/download_util.h" | 13 #include "chrome/browser/download/download_util.h" |
| 13 #include "chrome/browser/history/download_create_info.h" | |
| 14 #include "content/browser/browser_thread.h" | 14 #include "content/browser/browser_thread.h" |
| 15 | 15 |
| 16 DownloadFile::DownloadFile(const DownloadCreateInfo* info, | 16 DownloadFile::DownloadFile(const DownloadCreateInfo* info, |
| 17 DownloadManager* download_manager) | 17 DownloadManager* download_manager) |
| 18 : BaseFile(info->save_info.file_path, | 18 : BaseFile(info->save_info.file_path, |
| 19 info->url(), | 19 info->url(), |
| 20 info->referrer_url, | 20 info->referrer_url, |
| 21 info->received_bytes, | 21 info->received_bytes, |
| 22 info->save_info.file_stream), | 22 info->save_info.file_stream), |
| 23 id_(info->download_id), | 23 id_(info->download_id), |
| (...skipping 23 matching lines...) Expand all Loading... |
| 47 " request_id = " "%d" | 47 " request_id = " "%d" |
| 48 " render_view_id = " "%d" | 48 " render_view_id = " "%d" |
| 49 " Base File = %s" | 49 " Base File = %s" |
| 50 " }", | 50 " }", |
| 51 id_, | 51 id_, |
| 52 process_handle_.child_id(), | 52 process_handle_.child_id(), |
| 53 process_handle_.request_id(), | 53 process_handle_.request_id(), |
| 54 process_handle_.render_view_id(), | 54 process_handle_.render_view_id(), |
| 55 BaseFile::DebugString().c_str()); | 55 BaseFile::DebugString().c_str()); |
| 56 } | 56 } |
| OLD | NEW |