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

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

Issue 17176027: Add gpu command buffer support for loseContextCHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch 2 Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 { 9 namespace content {
10 10
(...skipping 28 matching lines...) Expand all
39 return OnControlMessageReceived(msg); 39 return OnControlMessageReceived(msg);
40 40
41 return RouteMessage(msg); 41 return RouteMessage(msg);
42 } 42 }
43 43
44 bool MessageRouter::RouteMessage(const IPC::Message& msg) { 44 bool MessageRouter::RouteMessage(const IPC::Message& msg) {
45 IPC::Listener* listener = routes_.Lookup(msg.routing_id()); 45 IPC::Listener* listener = routes_.Lookup(msg.routing_id());
46 if (!listener) 46 if (!listener)
47 return false; 47 return false;
48 48
49 listener->OnMessageReceived(msg); 49 return listener->OnMessageReceived(msg);
Justin Novosad 2013/06/21 18:24:11 This is to prevent an IPC deadlock between the ren
piman 2013/06/21 19:05:05 This is used in many places, for many different ch
50 return true;
51 } 50 }
52 51
53 } // namespace content 52 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698