summaryrefslogtreecommitdiffstats
path: root/content/public/browser/download_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/browser/download_manager.h')
-rw-r--r--content/public/browser/download_manager.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index 74cb77d..f970897 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -44,6 +44,10 @@
class GURL;
+namespace url {
+class Origin;
+}
+
namespace content {
class BrowserContext;
@@ -110,6 +114,12 @@ 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.