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

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

Issue 23618014: This defers starting background extension page RenderViews (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months 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_host.h
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index fe97ef2ad5460dc7bef423996d0f3b4b575c9aff..5e1864753d773a6e825ea6d45e1a479782062588 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.h
@@ -127,9 +127,20 @@ class ExtensionHost : public content::WebContentsDelegate,
// 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.
+ // (can be NULL). This happens in a rate limited fashion to avoid locking the
+ // UI.
void CreateRenderViewSoon();
+ // Does the same thing as CreateRenderViewSoon, but only adds the creation to
+ // a queue. Creation of these deferred views then happens when
+ // CreateDeferredRenderViews is called.
+ void CreateRenderViewDeferred();
+
+ // Creates any render views that have been deferred because
+ // CreateRenderViewDeferred was called. This happens in a rate limited
+ // fashion to avoid locking the UI.
+ static void CreateDeferredRenderViews();
+
// Insert a default style sheet for Extension Infobars.
void InsertInfobarCSS();
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | chrome/browser/extensions/extension_process_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698