OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser_thread.h" | |
12 #include "chrome/browser/download/download_manager.h" | 11 #include "chrome/browser/download/download_manager.h" |
13 #include "chrome/browser/download/download_util.h" | 12 #include "chrome/browser/download/download_util.h" |
14 #include "chrome/browser/history/download_create_info.h" | 13 #include "chrome/browser/history/download_create_info.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), |
24 child_id_(info->child_id), | 24 child_id_(info->child_id), |
(...skipping 29 matching lines...) Expand all Loading... |
54 " child_id_ = " "%d" | 54 " child_id_ = " "%d" |
55 " request_id_ = " "%d" | 55 " request_id_ = " "%d" |
56 " Base File = %s" | 56 " Base File = %s" |
57 " }", | 57 " }", |
58 full_path_.value().c_str(), | 58 full_path_.value().c_str(), |
59 id_, | 59 id_, |
60 child_id_, | 60 child_id_, |
61 request_id_, | 61 request_id_, |
62 BaseFile::DebugString().c_str()); | 62 BaseFile::DebugString().c_str()); |
63 } | 63 } |
OLD | NEW |