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

Unified Diff: content/browser/download/download_manager_impl.h

Issue 2593183002: [downloads] Remove DownloadManager::RemoveAllDownloads. (Closed)
Patch Set: Fix SavePageBrowsertest Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_manager_impl.h
diff --git a/content/browser/download/download_manager_impl.h b/content/browser/download/download_manager_impl.h
index e21dc123a3f764144a796856c6a88213d1e75b36..859fe17a774d60717c6da01a929d3e9a7bff845d 100644
--- a/content/browser/download/download_manager_impl.h
+++ b/content/browser/download/download_manager_impl.h
@@ -78,7 +78,6 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
const base::Callback<bool(const GURL&)>& url_filter,
base::Time remove_begin,
base::Time remove_end) override;
- int RemoveAllDownloads() override;
void DownloadUrl(std::unique_ptr<DownloadUrlParameters> params) override;
void AddObserver(Observer* observer) override;
void RemoveObserver(Observer* observer) override;
@@ -140,7 +139,6 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
using DownloadSet = std::set<DownloadItem*>;
using DownloadGuidMap = std::unordered_map<std::string, DownloadItemImpl*>;
using DownloadItemImplVector = std::vector<DownloadItemImpl*>;
- using DownloadRemover = base::Callback<bool(const DownloadItemImpl*)>;
// For testing.
friend class DownloadManagerTest;
@@ -175,9 +173,6 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
// observer.
void OnFileExistenceChecked(uint32_t download_id, bool result);
- // Remove all downloads for which |remover| returns true.
- int RemoveDownloads(const DownloadRemover& remover);
-
// Overridden from DownloadItemImplDelegate
// (Note that |GetBrowserContext| are present in both interfaces.)
void DetermineDownloadTarget(DownloadItemImpl* item,
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698