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

Unified Diff: chrome/browser/extensions/extension_process_manager.h

Issue 56253002: Move ExtensionsProcessManager to src/extensions, part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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: 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_;
« no previous file with comments | « chrome/browser/extensions/chrome_notification_observer.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698