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

Unified Diff: extensions/browser/extension_host.h

Issue 182253010: Register a Service Worker when an extension is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to r261176 Created 6 years, 9 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
« no previous file with comments | « content/renderer/service_worker/embedded_worker_dispatcher.cc ('k') | extensions/browser/extension_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_host.h
diff --git a/extensions/browser/extension_host.h b/extensions/browser/extension_host.h
index e10a98ffc723c95ef726948a0b9f699e1fc9cc10..a567b667caddb903c28dc6fff8ccf07c412b267a 100644
--- a/extensions/browser/extension_host.h
+++ b/extensions/browser/extension_host.h
@@ -73,7 +73,7 @@ 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.
- void CreateRenderViewSoon();
+ void CreateRenderViewSoon(const base::Closure& continuation);
// content::WebContentsObserver
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
@@ -177,6 +177,9 @@ class ExtensionHost : public content::WebContentsDelegate,
// Used to measure how long it's been since the host was created.
base::ElapsedTimer since_created_;
+ // Called when the RenderView is created.
+ std::vector<base::Closure> when_render_view_created_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
};
« no previous file with comments | « content/renderer/service_worker/embedded_worker_dispatcher.cc ('k') | extensions/browser/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698