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

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

Issue 100214: Only send events to renderers that are listening to an event.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 14939)
+++ chrome/renderer/extensions/event_bindings.h (working copy)
@@ -9,12 +9,17 @@
#include <string>
+class RenderThreadBase;
+
// This class deals with the javascript bindings related to Event objects.
class EventBindings {
public:
static const char* kName; // The v8::Extension name, for dependencies.
static v8::Extension* Get();
+ // Allow RenderThread to be mocked out.
+ static void SetRenderThread(RenderThreadBase* thread);
+
// 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