Index: content/public/browser/browser_context.h |
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h |
index 05f80861400fb6f69bc88d6b2b777395b3c87341..4d96452e814698549b7fc86f41973c3c195677a9 100644 |
--- a/content/public/browser/browser_context.h |
+++ b/content/public/browser/browser_context.h |
@@ -169,6 +169,13 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { |
~BrowserContext() override; |
+ // Shuts down the storage partitions associated to this browser context. |
+ // This must be called before the browser context is actually destroyed |
+ // and before a clean-up task for its corresponding IO thread residents (e.g. |
+ // ResourceContext) is posted, so that the classes that hung on |
+ // StoragePartition can have time to do necessary cleanups on IO thread. |
+ void ShutdownStoragePartitions(); |
+ |
// Creates a delegate to initialize a HostZoomMap and persist its information. |
// This is called during creation of each StoragePartition. |
virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |