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

Unified Diff: content/public/browser/download_manager.h

Issue 1603903002: Add an OriginFilterBuilder class for [white|black]listing origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase over 1246583002 Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/download_manager.h
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index 16d161bff583ae4687554caa5504fe02ba2b59e1..b53151ac91dc10bbf8b3ea626b586346e0344329 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -114,17 +114,14 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data {
scoped_ptr<ByteStreamReader> stream,
const DownloadUrlParameters::OnStartedCallback& on_started) = 0;
- // Remove downloads which are same-origin with the given origin and pertain to
- // the given time constraints. (See |RemoveDownloadsBetween|.)
- virtual int RemoveDownloadsByOriginAndTime(const url::Origin& origin,
- base::Time remove_begin,
- base::Time remove_end) = 0;
-
- // Remove downloads after remove_begin (inclusive) and before remove_end
- // (exclusive). You may pass in null Time values to do an unbounded delete
- // in either direction.
- virtual int RemoveDownloadsBetween(base::Time remove_begin,
- base::Time remove_end) = 0;
+ // Remove downloads whose URLs match the |url_filter| and are within
+ // the given time constraints - after remove_begin (inclusive) and before
+ // remove_end (exclusive). You may pass in null Time values to do an unbounded
+ // delete in either direction.
+ virtual int RemoveDownloadsByURLAndTime(
+ const base::Callback<bool(const GURL&)>& url_filter,
+ base::Time remove_begin,
+ base::Time remove_end) = 0;
// Remove all downloads will delete all downloads. The number of downloads
// deleted is returned back to the caller.
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698