src/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
// Dispatches events to the extension message service.
Dispatches events to the extension message service.
Dispatches events to the extension message service .
void DispatchEvent(content::BrowserContext* browser_context,
                   const char* event_name,
                   scoped_ptr<ListValue> args,
                   const GURL& url) {
  EventFilteringInfo info;
  info.SetURL(url);
  Profile* profile = Profile::FromBrowserContext(browser_context);
  if (profile && extensions::ExtensionSystem::Get(profile)->event_router()) {
    scoped_ptr<Event> event(new Event(event_name, args.Pass()));
    event->restrict_to_profile = profile;
    event->filter_info = info;
    ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass());
  }
}
void DispatchEvent ( content :: BrowserContext * browser_context , const char * event_name , scoped_ptr < ListValue > args , const GURL & url ) { EventFilteringInfo info ; info . SetURL ( url ) ; Profile * profile = Profile :: FromBrowserContext ( browser_context ) ; if ( profile && extensions :: ExtensionSystem :: Get ( profile ) -> event_router ( ) ) { scoped_ptr < Event > event ( new Event ( event_name , args . Pass ( ) ) ) ; event -> restrict_to_profile = profile ; event -> filter_info = info ; ExtensionSystem :: Get ( profile ) -> event_router ( ) -> BroadcastEvent ( event . Pass ( ) ) ; } }
Dispatches events to the extension message service.
Dispatches events to the extension message service .