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

Unified Diff: content/public/browser/browser_context.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/BUILD.gn ('k') | content/public/browser/browsing_data_remover.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index e06049b9351f6e42c23f1d587d91afe6af2bb759..f5cd8abf9a1557f7110706540df818efa97c268d 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -53,6 +53,8 @@ namespace content {
class BackgroundSyncController;
class BlobHandle;
class BrowserPluginGuestManager;
+class BrowsingDataRemover;
+class BrowsingDataRemoverDelegate;
class DownloadManager;
class DownloadManagerDelegate;
class PermissionManager;
@@ -85,10 +87,15 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// mount points. Currenty, non-nullptr value is returned only on ChromeOS.
static storage::ExternalMountPoints* GetMountPoints(BrowserContext* context);
- static content::StoragePartition* GetStoragePartition(
- BrowserContext* browser_context, SiteInstance* site_instance);
- static content::StoragePartition* GetStoragePartitionForSite(
- BrowserContext* browser_context, const GURL& site);
+ // Returns a BrowsingDataRemover that can schedule data deletion tasks
+ // for this |context|.
+ static BrowsingDataRemover* GetBrowsingDataRemover(BrowserContext* context);
+
+ static StoragePartition* GetStoragePartition(BrowserContext* browser_context,
+ SiteInstance* site_instance);
+ static StoragePartition* GetStoragePartitionForSite(
+ BrowserContext* browser_context,
+ const GURL& site);
using StoragePartitionCallback = base::Callback<void(StoragePartition*)>;
static void ForEachStoragePartition(
BrowserContext* browser_context,
@@ -105,7 +112,7 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
std::unique_ptr<base::hash_set<base::FilePath>> active_paths,
const base::Closure& done);
- static content::StoragePartition* GetDefaultStoragePartition(
+ static StoragePartition* GetDefaultStoragePartition(
BrowserContext* browser_context);
using BlobCallback = base::Callback<void(std::unique_ptr<BlobHandle>)>;
@@ -226,6 +233,10 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// nullptr otherwise.
virtual BackgroundSyncController* GetBackgroundSyncController() = 0;
+ // Returns the BrowsingDataRemoverDelegate for this context. This will be
+ // called once per context. It's valid to return nullptr.
+ virtual BrowsingDataRemoverDelegate* GetBrowsingDataRemoverDelegate();
+
// Creates the main net::URLRequestContextGetter. It's called only once.
virtual net::URLRequestContextGetter* CreateRequestContext(
ProtocolHandlerMap* protocol_handlers,
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/browsing_data_remover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698