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

Side by Side Diff: content/common/message_router.cc

Issue 11235068: Move the remaning files in content\common to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/message_router.h ('k') | content/common/np_channel_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/common/message_router.h" 5 #include "content/common/message_router.h"
6 6
7 #include "ipc/ipc_message.h" 7 #include "ipc/ipc_message.h"
8 8
9 namespace content {
10
9 MessageRouter::MessageRouter() { 11 MessageRouter::MessageRouter() {
10 } 12 }
11 13
12 MessageRouter::~MessageRouter() { 14 MessageRouter::~MessageRouter() {
13 } 15 }
14 16
15 bool MessageRouter::OnControlMessageReceived(const IPC::Message& msg) { 17 bool MessageRouter::OnControlMessageReceived(const IPC::Message& msg) {
16 NOTREACHED() << 18 NOTREACHED() <<
17 "should override in subclass if you care about control messages"; 19 "should override in subclass if you care about control messages";
18 return false; 20 return false;
(...skipping 25 matching lines...) Expand all
44 if (!listener) 46 if (!listener)
45 return false; 47 return false;
46 48
47 listener->OnMessageReceived(msg); 49 listener->OnMessageReceived(msg);
48 return true; 50 return true;
49 } 51 }
50 52
51 IPC::Listener* MessageRouter::ResolveRoute(int32 routing_id) { 53 IPC::Listener* MessageRouter::ResolveRoute(int32 routing_id) {
52 return routes_.Lookup(routing_id); 54 return routes_.Lookup(routing_id);
53 } 55 }
56
57 } // namespace content
OLDNEW
« 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