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

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

Issue 2827523003: Move BrowsingDataRemover to content/ (Closed)
Patch Set: Rebase over codereview.chromium.org/2815913005 Created 3 years, 8 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
« no previous file with comments | « content/public/browser/browsing_data_remover.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browsing_data_remover_delegate.h
diff --git a/chrome/browser/browsing_data/browsing_data_remover_delegate.h b/content/public/browser/browsing_data_remover_delegate.h
similarity index 77%
rename from chrome/browser/browsing_data/browsing_data_remover_delegate.h
rename to content/public/browser/browsing_data_remover_delegate.h
index 4483fd79f7b2e2e63afeb3292b0aaf2f511e4189..eaf0b9411bee6e1f6872066a2bccc13ae3884b1a 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_delegate.h
+++ b/content/public/browser/browsing_data_remover_delegate.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_
-#define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_
+#ifndef CONTENT_PUBLIC_BROWSER_BROWSING_DATA_REMOVER_DELEGATE_H_
+#define CONTENT_PUBLIC_BROWSER_BROWSING_DATA_REMOVER_DELEGATE_H_
#include "base/callback_forward.h"
@@ -13,14 +13,14 @@ namespace base {
class Time;
}
-namespace content {
-class BrowsingDataFilterBuilder;
-}
-
namespace storage {
class SpecialStoragePolicy;
}
+namespace content {
+
+class BrowsingDataFilterBuilder;
+
class BrowsingDataRemoverDelegate {
public:
// Determines whether |origin| matches |origin_type_mask| given
@@ -39,14 +39,19 @@ class BrowsingDataRemoverDelegate {
// being called on the UI and IO thread.
virtual EmbedderOriginTypeMatcher GetOriginTypeMatcher() const = 0;
+ // Whether the embedder allows the removal of download history.
+ virtual bool MayRemoveDownloadHistory() const = 0;
+
// Removes embedder-specific data.
virtual void RemoveEmbedderData(
const base::Time& delete_begin,
const base::Time& delete_end,
int remove_mask,
- const content::BrowsingDataFilterBuilder& filter_builder,
+ const BrowsingDataFilterBuilder& filter_builder,
int origin_type_mask,
const base::Closure& callback) = 0;
};
-#endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_BROWSING_DATA_REMOVER_DELEGATE_H_
« no previous file with comments | « content/public/browser/browsing_data_remover.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698