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

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

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 bool operator!=(const MapValueIteratorAdapter& that) const { 151 bool operator!=(const MapValueIteratorAdapter& that) const {
152 return iter_ != that.iter_; 152 return iter_ != that.iter_;
153 } 153 }
154 154
155 private: 155 private:
156 base::hash_map<int64, DownloadItem*>::const_iterator iter_; 156 base::hash_map<int64, DownloadItem*>::const_iterator iter_;
157 // Allow copy and assign. 157 // Allow copy and assign.
158 }; 158 };
159 159
160 void EnsureNoPendingDownloadJobsOnFile(bool* result) {
161 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
162 *result = (DownloadFile::GetNumberOfDownloadFiles() == 0);
163 BrowserThread::PostTask(
164 BrowserThread::UI, FROM_HERE, base::MessageLoop::QuitClosure());
165 }
166
167 class DownloadItemFactoryImpl : public DownloadItemFactory { 160 class DownloadItemFactoryImpl : public DownloadItemFactory {
168 public: 161 public:
169 DownloadItemFactoryImpl() {} 162 DownloadItemFactoryImpl() {}
170 virtual ~DownloadItemFactoryImpl() {} 163 virtual ~DownloadItemFactoryImpl() {}
171 164
172 virtual DownloadItemImpl* CreatePersistedItem( 165 virtual DownloadItemImpl* CreatePersistedItem(
173 DownloadItemImplDelegate* delegate, 166 DownloadItemImplDelegate* delegate,
174 uint32 download_id, 167 uint32 download_id,
175 const base::FilePath& current_path, 168 const base::FilePath& current_path,
176 const base::FilePath& target_path, 169 const base::FilePath& target_path,
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 if (delegate_) 707 if (delegate_)
715 delegate_->OpenDownload(download); 708 delegate_->OpenDownload(download);
716 } 709 }
717 710
718 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { 711 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) {
719 if (delegate_) 712 if (delegate_)
720 delegate_->ShowDownloadInShell(download); 713 delegate_->ShowDownloadInShell(download);
721 } 714 }
722 715
723 } // namespace content 716 } // namespace content
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | content/browser/renderer_host/render_widget_host_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698