OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/message_router.h" | 5 #include "chrome/common/message_router.h" |
6 | 6 |
| 7 MessageRouter::MessageRouter() { |
| 8 } |
| 9 |
| 10 MessageRouter::~MessageRouter() { |
| 11 } |
| 12 |
7 void MessageRouter::OnControlMessageReceived(const IPC::Message& msg) { | 13 void MessageRouter::OnControlMessageReceived(const IPC::Message& msg) { |
8 NOTREACHED() << | 14 NOTREACHED() << |
9 "should override in subclass if you care about control messages"; | 15 "should override in subclass if you care about control messages"; |
10 } | 16 } |
11 | 17 |
12 bool MessageRouter::Send(IPC::Message* msg) { | 18 bool MessageRouter::Send(IPC::Message* msg) { |
13 NOTREACHED() << | 19 NOTREACHED() << |
14 "should override in subclass if you care about sending messages"; | 20 "should override in subclass if you care about sending messages"; |
15 return false; | 21 return false; |
16 } | 22 } |
(...skipping 20 matching lines...) Expand all Loading... |
37 if (!listener) | 43 if (!listener) |
38 return false; | 44 return false; |
39 | 45 |
40 listener->OnMessageReceived(msg); | 46 listener->OnMessageReceived(msg); |
41 return true; | 47 return true; |
42 } | 48 } |
43 | 49 |
44 IPC::Channel::Listener* MessageRouter::ResolveRoute(int32 routing_id) { | 50 IPC::Channel::Listener* MessageRouter::ResolveRoute(int32 routing_id) { |
45 return routes_.Lookup(routing_id); | 51 return routes_.Lookup(routing_id); |
46 } | 52 } |
OLD | NEW |