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

Unified Diff: chrome/browser/extensions/event_router.cc

Issue 11440004: Remove deprecated extension EventRouter APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 8 years 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
« no previous file with comments | « chrome/browser/extensions/event_router.h ('k') | chrome/browser/extensions/event_router_forwarder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/event_router.cc
diff --git a/chrome/browser/extensions/event_router.cc b/chrome/browser/extensions/event_router.cc
index fbfa8232eff1e4f1879a506ed89b00c927873b4e..58b493751684794cf5d089e5ca1d15660ae51cae 100644
--- a/chrome/browser/extensions/event_router.cc
+++ b/chrome/browser/extensions/event_router.cc
@@ -334,68 +334,6 @@ bool EventRouter::HasEventListenerImpl(const ListenerMap& listener_map,
return false;
}
-void EventRouter::DispatchEventToRenderers(const std::string& event_name,
- scoped_ptr<ListValue> event_args,
- Profile* restrict_to_profile,
- const GURL& event_url,
- EventFilteringInfo info) {
- linked_ptr<Event> event(new Event(event_name, event_args.Pass(),
- scoped_ptr<ListValue>(),
- restrict_to_profile, event_url,
- USER_GESTURE_UNKNOWN, info));
- DispatchEventImpl("", event);
-}
-
-void EventRouter::DispatchEventToRenderers(const std::string& event_name,
- scoped_ptr<ListValue> event_args,
- Profile* restrict_to_profile,
- const GURL& event_url) {
- DispatchEventToRenderers(event_name, event_args.Pass(), restrict_to_profile,
- event_url, EventFilteringInfo());
-}
-
-void EventRouter::DispatchEventToRenderers(const std::string& event_name,
- scoped_ptr<ListValue> event_args,
- Profile* restrict_to_profile,
- const GURL& event_url,
- UserGestureState user_gesture) {
- EventFilteringInfo info;
- linked_ptr<Event> event(new Event(event_name, event_args.Pass(),
- scoped_ptr<ListValue>(),
- restrict_to_profile, event_url,
- user_gesture, info));
- DispatchEventImpl("", event);
-}
-
-void EventRouter::DispatchEventToExtension(const std::string& extension_id,
- const std::string& event_name,
- scoped_ptr<ListValue> event_args,
- Profile* restrict_to_profile,
- const GURL& event_url) {
- DCHECK(!extension_id.empty());
- linked_ptr<Event> event(new Event(event_name, event_args.Pass(),
- scoped_ptr<ListValue>(),
- restrict_to_profile, event_url,
- USER_GESTURE_UNKNOWN,
- EventFilteringInfo()));
- DispatchEventImpl(extension_id, event);
-}
-
-void EventRouter::DispatchEventToExtension(const std::string& extension_id,
- const std::string& event_name,
- scoped_ptr<ListValue> event_args,
- Profile* restrict_to_profile,
- const GURL& event_url,
- UserGestureState user_gesture) {
- DCHECK(!extension_id.empty());
- linked_ptr<Event> event(new Event(event_name, event_args.Pass(),
- scoped_ptr<ListValue>(),
- restrict_to_profile, event_url,
- user_gesture,
- EventFilteringInfo()));
- DispatchEventImpl(extension_id, event);
-}
-
void EventRouter::BroadcastEvent(scoped_ptr<Event> event) {
DispatchEventImpl("", linked_ptr<Event>(event.release()));
}
« no previous file with comments | « chrome/browser/extensions/event_router.h ('k') | chrome/browser/extensions/event_router_forwarder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698