Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Side by Side Diff: content/browser/download/download_manager_impl.cc

Issue 1875463002: Remove unused fields from //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scythe-root
Patch Set: Fixed Ozone build. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698