From 552d3a448b43d6f98e0a28793f98099f5e7d7e05 Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Thu, 24 Sep 2009 22:59:09 +0000 Subject: Revert r27137: "Create renderers for ExtensionHosts one at a time to avoid blocking the UI" BUG=14040 TBR=erikkay git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27143 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_host.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'chrome/browser/extensions/extension_host.h') diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h index 617cd8e..3b3d64e 100644 --- a/chrome/browser/extensions/extension_host.h +++ b/chrome/browser/extensions/extension_host.h @@ -38,8 +38,6 @@ class ExtensionHost : public RenderViewHostDelegate, public ExtensionFunctionDispatcher::Delegate, public NotificationObserver { public: - class ProcessCreationQueue; - // Enable DOM automation in created render view hosts. static void EnableDOMAutomation() { enable_dom_automation_ = true; } @@ -77,10 +75,10 @@ class ExtensionHost : public RenderViewHostDelegate, // Returns true if the render view is initialized and didn't crash. bool IsRenderViewLive() const; - // Prepares to initializes our RenderViewHost by creating its RenderView and - // navigating to this host's url. Uses host_view for the RenderViewHost's view - // (can be NULL). This happens delayed to avoid locking the UI. - void CreateRenderViewSoon(RenderWidgetHostView* host_view); + // Initializes our RenderViewHost by creating its RenderView and navigating + // to this host's url. Uses host_view for the RenderViewHost's view (can be + // NULL). + void CreateRenderView(RenderWidgetHostView* host_view); // Sets |url_| and navigates |render_view_host_|. void NavigateToURL(const GURL& url); @@ -140,15 +138,10 @@ class ExtensionHost : public RenderViewHostDelegate, const NotificationDetails& details); private: - friend class ProcessCreationQueue; - // Whether to allow DOM automation for created RenderViewHosts. This is used // for testing. static bool enable_dom_automation_; - // Actually create the RenderView for this host. See CreateRenderViewSoon. - void CreateRenderViewNow(); - // ExtensionFunctionDispatcher::Delegate // If this ExtensionHost has a view, this returns the Browser that view is a // part of. If this is a global background page, we use the active Browser -- cgit v1.1