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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.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
Index: chrome/browser/renderer_host/browser_render_process_host.h
===================================================================
--- chrome/browser/renderer_host/browser_render_process_host.h (revision 14939)
+++ chrome/browser/renderer_host/browser_render_process_host.h (working copy)
@@ -86,6 +86,10 @@
const NotificationSource& source,
const NotificationDetails& details);
+ // An extension process started or stopped listening to an event.
+ void OnExtensionAddListener(const std::string& event_name);
+ void OnExtensionRemoveListener(const std::string& event_name);
+
private:
// Control message handlers.
void OnPageContents(const GURL& url, int32 page_id,
« no previous file with comments | « chrome/browser/extensions/extension_messages_unittest.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698