| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/download/download_manager_impl.h" | 5 #include "content/browser/download/download_manager_impl.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 } | 178 } |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace | 181 } // namespace |
| 182 | 182 |
| 183 DownloadManagerImpl::DownloadManagerImpl( | 183 DownloadManagerImpl::DownloadManagerImpl( |
| 184 net::NetLog* net_log, | 184 net::NetLog* net_log, |
| 185 BrowserContext* browser_context) | 185 BrowserContext* browser_context) |
| 186 : item_factory_(new DownloadItemFactoryImpl()), | 186 : item_factory_(new DownloadItemFactoryImpl()), |
| 187 file_factory_(new DownloadFileFactory()), | 187 file_factory_(new DownloadFileFactory()), |
| 188 history_size_(0), | |
| 189 shutdown_needed_(true), | 188 shutdown_needed_(true), |
| 190 browser_context_(browser_context), | 189 browser_context_(browser_context), |
| 191 delegate_(NULL), | 190 delegate_(NULL), |
| 192 net_log_(net_log), | 191 net_log_(net_log), |
| 193 weak_factory_(this) { | 192 weak_factory_(this) { |
| 194 DCHECK(browser_context); | 193 DCHECK(browser_context); |
| 195 } | 194 } |
| 196 | 195 |
| 197 DownloadManagerImpl::~DownloadManagerImpl() { | 196 DownloadManagerImpl::~DownloadManagerImpl() { |
| 198 DCHECK(!shutdown_needed_); | 197 DCHECK(!shutdown_needed_); |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 if (delegate_) | 719 if (delegate_) |
| 721 delegate_->OpenDownload(download); | 720 delegate_->OpenDownload(download); |
| 722 } | 721 } |
| 723 | 722 |
| 724 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { | 723 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { |
| 725 if (delegate_) | 724 if (delegate_) |
| 726 delegate_->ShowDownloadInShell(download); | 725 delegate_->ShowDownloadInShell(download); |
| 727 } | 726 } |
| 728 | 727 |
| 729 } // namespace content | 728 } // namespace content |
| OLD | NEW |