Index: chrome/browser/extensions/extension_process_manager.h |
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h |
index c24a74be39d8baa93eee1e78419ce34edf821e68..2b7273f9e92adc87ddda9ae15ba66235f9d4e68e 100644 |
--- a/chrome/browser/extensions/extension_process_manager.h |
+++ b/chrome/browser/extensions/extension_process_manager.h |
@@ -20,7 +20,6 @@ |
class Browser; |
class GURL; |
-class Profile; |
namespace content { |
class BrowserContext; |
@@ -141,6 +140,13 @@ class ExtensionProcessManager : public content::NotificationObserver { |
// background hosts will be created. Defaults to false. |
void DeferBackgroundHostCreation(bool defer); |
+ // Ensures background hosts are loaded for a new browser window. |
+ void OnBrowserWindowReady(); |
+ |
+ // Gets the BrowserContext associated with site_instance_ and all other |
+ // related SiteInstances. |
+ content::BrowserContext* GetBrowserContext() const; |
+ |
protected: |
// If |context| is incognito pass the master context as |original_context|. |
// Otherwise pass the same context for both. |
@@ -163,13 +169,6 @@ class ExtensionProcessManager : public content::NotificationObserver { |
// should be loaded. |
void CreateBackgroundHostsForProfileStartup(); |
- // Gets the profile associated with site_instance_ and all other |
- // related SiteInstances. |
- Profile* GetProfile() const; |
- |
- // Returns the same value as GetProfile() as a BrowserContext. |
- content::BrowserContext* GetBrowserContext() const; |
- |
content::NotificationRegistrar registrar_; |
// The set of ExtensionHosts running viewless background extensions. |
@@ -239,6 +238,9 @@ class ExtensionProcessManager : public content::NotificationObserver { |
// If true, then creation of background hosts is suspended. |
bool defer_background_host_creation_; |
+ // True if we have created the startup set of background hosts. |
+ bool startup_background_hosts_created_; |
+ |
base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; |
base::WeakPtrFactory<ExtensionProcessManager> weak_ptr_factory_; |