summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 15:12:56 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 15:12:56 +0000
commitc02b7c98f49e94910d622162455293e52841089e (patch)
tree709d9ab5c72a99198cb47ebd46f3b07a580bb280 /chrome/common
parent43b24b69d766df5f801daa86656c50d361fe8a6b (diff)
downloadchromium_src-c02b7c98f49e94910d622162455293e52841089e.zip
chromium_src-c02b7c98f49e94910d622162455293e52841089e.tar.gz
chromium_src-c02b7c98f49e94910d622162455293e52841089e.tar.bz2
Only send events to renderers that are listening to an event.Notify browser when a renderer is listening to an event.
Review URL: http://codereview.chromium.org/100214 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/render_messages_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 41f7a6b..66f64b4 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -1296,6 +1296,14 @@ IPC_BEGIN_MESSAGES(ViewHost)
std::string /* argument */,
int /* callback id */)
+ // Notify the browser that this renderer added a listener to an event.
+ IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionAddListener,
+ std::string /* name */)
+
+ // Notify the browser that this renderer removed a listener from an event.
+ IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionRemoveListener,
+ std::string /* name */)
+
#if defined(OS_MACOSX)
// On OSX, we cannot allocated shared memory from within the sandbox, so
// this call exists for the renderer to ask the browser to allocate memory