Lines Matching refs:EventRouter
82 const char EventRouter::kRegisteredEvents[] = "events";
84 struct EventRouter::ListenerProcess {
102 void EventRouter::DispatchExtensionMessage(IPC::Sender* ipc_sender,
134 EventRouter* EventRouter::Get(content::BrowserContext* browser_context) {
139 std::string EventRouter::GetBaseEventName(const std::string& full_event_name) {
145 void EventRouter::DispatchEvent(IPC::Sender* ipc_sender,
163 base::Bind(&EventRouter::IncrementInFlightEventsOnUI,
168 EventRouter::EventRouter(BrowserContext* browser_context,
184 EventRouter::~EventRouter() {}
186 void EventRouter::AddEventListener(const std::string& event_name,
193 void EventRouter::RemoveEventListener(const std::string& event_name,
201 void EventRouter::AddEventListenerForURL(const std::string& event_name,
208 void EventRouter::RemoveEventListenerForURL(const std::string& event_name,
216 void EventRouter::RegisterObserver(Observer* observer,
223 void EventRouter::UnregisterObserver(Observer* observer) {
234 void EventRouter::OnListenerAdded(const EventListener* listener) {
250 void EventRouter::OnListenerRemoved(const EventListener* listener) {
261 void EventRouter::AddLazyEventListener(const std::string& event_name,
274 void EventRouter::RemoveLazyEventListener(const std::string& event_name,
288 void EventRouter::AddFilteredEventListener(const std::string& event_name,
311 void EventRouter::RemoveFilteredEventListener(
334 bool EventRouter::HasEventListener(const std::string& event_name) {
338 bool EventRouter::ExtensionHasEventListener(const std::string& extension_id,
343 bool EventRouter::HasEventListenerImpl(const ListenerMap& listener_map,
362 std::set<std::string> EventRouter::GetRegisteredEvents(
381 void EventRouter::SetRegisteredEvents(const std::string& extension_id,
392 void EventRouter::AddFilterToEvent(const std::string& event_name,
410 void EventRouter::RemoveFilterFromEvent(const std::string& event_name,
432 const DictionaryValue* EventRouter::GetFilteredEvents(
440 void EventRouter::BroadcastEvent(scoped_ptr<Event> event) {
444 void EventRouter::DispatchEventToExtension(const std::string& extension_id,
450 void EventRouter::DispatchEventWithLazyListener(const std::string& extension_id,
462 void EventRouter::DispatchEventImpl(const std::string& restrict_to_extension_id,
510 void EventRouter::DispatchLazyEvent(
541 void EventRouter::DispatchEventToProcess(const std::string& extension_id,
596 // messaging) don't go through EventRouter so this should be impossible.
618 bool EventRouter::CanDispatchEventToBrowserContext(
632 bool EventRouter::MaybeLoadLazyBackgroundPageToDispatchEvent(
656 base::Bind(&EventRouter::DispatchPendingEvent,
665 void EventRouter::IncrementInFlightEventsOnUI(
673 EventRouter* event_router = EventRouter::Get(browser_context);
684 void EventRouter::IncrementInFlightEvents(BrowserContext* context,
696 void EventRouter::OnEventAck(BrowserContext* context,
710 void EventRouter::DispatchPendingEvent(const linked_ptr<Event>& event,
723 void EventRouter::Observe(int type,
753 void EventRouter::OnExtensionLoaded(content::BrowserContext* browser_context,
764 void EventRouter::OnExtensionUnloaded(content::BrowserContext* browser_context,
776 user_gesture(EventRouter::USER_GESTURE_UNKNOWN) {
786 user_gesture(EventRouter::USER_GESTURE_UNKNOWN) {
794 EventRouter::UserGestureState user_gesture,