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

Unified Diff: chrome/renderer/extensions/event_bindings.h

Issue 125280: Send port-closed notification when a frame with ports unloads.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/extensions/event_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/event_bindings.h
===================================================================
--- chrome/renderer/extensions/event_bindings.h (revision 18701)
+++ chrome/renderer/extensions/event_bindings.h (working copy)
@@ -10,6 +10,7 @@
#include <string>
class RenderThreadBase;
+class WebFrame;
// This class deals with the javascript bindings related to Event objects.
class EventBindings {
@@ -19,7 +20,14 @@
// Allow RenderThread to be mocked out.
static void SetRenderThread(RenderThreadBase* thread);
+ static RenderThreadBase* GetRenderThread();
+ // Notify script that the document object is ready. We don't use the DOM
+ // unload event because that causes Chrome's "sudden termination" to be
+ // disabled for this renderer, meaning we'll slow down shutdown.
+ static void HandleDocumentReady(WebFrame* frame);
+ static void HandleDocumentClose(WebFrame* frame);
+
// Calls the given function in each registered context which is listening
// for events. The function can be an object property, ie:
// "chromium.Event.dispatch_".
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/extensions/event_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698