| 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.
|
|
|