| Index: content/browser/download/download_manager_impl.cc
|
| diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc
|
| index 4b40c27b59bbf70bbfb7e079b5562299835b0261..7291e0d6b412dc32649cfdc2667d1728bc4f1587 100644
|
| --- a/content/browser/download/download_manager_impl.cc
|
| +++ b/content/browser/download/download_manager_impl.cc
|
| @@ -169,27 +169,33 @@ class DownloadItemFactoryImpl : public DownloadItemFactory {
|
| virtual DownloadItemImpl* CreatePersistedItem(
|
| DownloadItemImplDelegate* delegate,
|
| DownloadId download_id,
|
| - const FilePath& path,
|
| - const GURL& url,
|
| + const FilePath& current_path,
|
| + const FilePath& target_path,
|
| + const std::vector<GURL>& url_chain,
|
| const GURL& referrer_url,
|
| const base::Time& start_time,
|
| const base::Time& end_time,
|
| int64 received_bytes,
|
| int64 total_bytes,
|
| DownloadItem::DownloadState state,
|
| + DownloadDangerType danger_type,
|
| + DownloadInterruptReason interrupt_reason,
|
| bool opened,
|
| const net::BoundNetLog& bound_net_log) OVERRIDE {
|
| return new DownloadItemImpl(
|
| delegate,
|
| download_id,
|
| - path,
|
| - url,
|
| + current_path,
|
| + target_path,
|
| + url_chain,
|
| referrer_url,
|
| start_time,
|
| end_time,
|
| received_bytes,
|
| total_bytes,
|
| state,
|
| + danger_type,
|
| + interrupt_reason,
|
| opened,
|
| bound_net_log);
|
| }
|
| @@ -594,26 +600,32 @@ void DownloadManagerImpl::RemoveObserver(Observer* observer) {
|
| }
|
|
|
| DownloadItem* DownloadManagerImpl::CreateDownloadItem(
|
| - const FilePath& path,
|
| - const GURL& url,
|
| + const FilePath& current_path,
|
| + const FilePath& target_path,
|
| + const std::vector<GURL>& url_chain,
|
| const GURL& referrer_url,
|
| const base::Time& start_time,
|
| const base::Time& end_time,
|
| int64 received_bytes,
|
| int64 total_bytes,
|
| DownloadItem::DownloadState state,
|
| + DownloadDangerType danger_type,
|
| + DownloadInterruptReason interrupt_reason,
|
| bool opened) {
|
| DownloadItemImpl* item = item_factory_->CreatePersistedItem(
|
| this,
|
| GetNextId(),
|
| - path,
|
| - url,
|
| + current_path,
|
| + target_path,
|
| + url_chain,
|
| referrer_url,
|
| start_time,
|
| end_time,
|
| received_bytes,
|
| total_bytes,
|
| state,
|
| + danger_type,
|
| + interrupt_reason,
|
| opened,
|
| net::BoundNetLog::Make(net_log_, net::NetLog::SOURCE_DOWNLOAD));
|
| DCHECK(!ContainsKey(downloads_, item->GetId()));
|
|
|