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