Index: chrome/browser/extensions/event_listener_map.h |
diff --git a/chrome/browser/extensions/event_listener_map.h b/chrome/browser/extensions/event_listener_map.h |
index 6c5c304f6826cbd48a443e57ddcd505c41754056..d252900a2f21fc2afa19f9b75bcb00592ace885d 100644 |
--- a/chrome/browser/extensions/event_listener_map.h |
+++ b/chrome/browser/extensions/event_listener_map.h |
@@ -93,8 +93,11 @@ class EventListenerMap { |
bool RemoveListener(const EventListener* listener); |
// Returns the set of listeners that want to be notified of |event|. |
- std::set<const EventListener*> GetEventListeners( |
- const Event& event); |
+ std::set<const EventListener*> GetEventListeners(const Event& event); |
+ |
+ const ListenerList& GetEventListenersByName(const std::string& event_name) { |
+ return listeners_[event_name]; |
+ } |
// Removes all listeners with process equal to |process|. |
void RemoveListenersForProcess(const content::RenderProcessHost* process); |