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: content/common/message_router.cc

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « content/common/message_router.h ('k') | content/common/np_channel_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/message_router.cc
diff --git a/content/common/message_router.cc b/content/common/message_router.cc
index b019843ec63d6a005ad24304acf2ffaf2a03e4f7..92523fae17a025d3fc92c4c8727eb4942d34a6cb 100644
--- a/content/common/message_router.cc
+++ b/content/common/message_router.cc
@@ -4,6 +4,8 @@
#include "content/common/message_router.h"
+#include "ipc/ipc_message.h"
+
MessageRouter::MessageRouter() {
}
@@ -22,8 +24,7 @@ bool MessageRouter::Send(IPC::Message* msg) {
return false;
}
-void MessageRouter::AddRoute(int32 routing_id,
- IPC::Channel::Listener* listener) {
+void MessageRouter::AddRoute(int32 routing_id, IPC::Listener* listener) {
routes_.AddWithID(listener, routing_id);
}
@@ -39,7 +40,7 @@ bool MessageRouter::OnMessageReceived(const IPC::Message& msg) {
}
bool MessageRouter::RouteMessage(const IPC::Message& msg) {
- IPC::Channel::Listener* listener = ResolveRoute(msg.routing_id());
+ IPC::Listener* listener = ResolveRoute(msg.routing_id());
if (!listener)
return false;
@@ -47,6 +48,6 @@ bool MessageRouter::RouteMessage(const IPC::Message& msg) {
return true;
}
-IPC::Channel::Listener* MessageRouter::ResolveRoute(int32 routing_id) {
+IPC::Listener* MessageRouter::ResolveRoute(int32 routing_id) {
return routes_.Lookup(routing_id);
}
« no previous file with comments | « content/common/message_router.h ('k') | content/common/np_channel_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698