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

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

Issue 2827523003: Move BrowsingDataRemover to content/ (Closed)
Patch Set: Addressed comments. 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
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index f360af58e0c3c3613fb5d3b86bd224d49d289a19..3c8feca852ac7416d60d8e45ac45cf22b226e9a7 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -542,15 +542,18 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {}
// Clears browser cache.
+ // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead.
virtual void ClearCache(RenderFrameHost* rfh) {}
// Clears browser cookies.
+ // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead.
virtual void ClearCookies(RenderFrameHost* rfh) {}
// Clears |browser_context|'s data stored for the given |origin|.
// The datatypes to be removed are specified by |remove_cookies|,
// |remove_storage|, and |remove_cache|. Note that cookies should be removed
// for the entire eTLD+1 of |origin|. Must call |callback| when finished.
+ // TODO(crbug.com/668114): Depreacated. Use BrowsingDataRemover instead.
virtual void ClearSiteData(content::BrowserContext* browser_context,
const url::Origin& origin,
bool remove_cookies,
@@ -558,6 +561,9 @@ class CONTENT_EXPORT ContentBrowserClient {
bool remove_cache,
const base::Closure& callback) {}
+ // Whether the embedder allows deleting history for |browser_context|.
+ virtual bool MayDeleteHistory(BrowserContext* browser_context);
jam 2017/04/20 00:39:48 it looks like DATA_TYPE_DOWNLOADS is only set by t
msramek 2017/04/21 15:22:12 Isn't that dangerous though? If someone adds a new
jam 2017/04/21 22:58:30 Can you perhaps add a dcheck that DATA_TYPE_DOWNLO
msramek 2017/04/25 01:29:09 Unfortunately, no. Inside BrowsingDataRemoverImpl:
+
// Returns the default download directory.
// This can be called on any thread.
virtual base::FilePath GetDefaultDownloadDirectory();

Powered by Google App Engine
This is Rietveld 408576698