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

Side by Side Diff: ppapi/proxy/plugin_dispatcher.cc

Issue 11416214: PPAPI: Move PPB_Console out of dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.h ('k') | ppapi/proxy/plugin_globals.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ppapi/proxy/plugin_dispatcher.h" 5 #include "ppapi/proxy/plugin_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 "the |interface_name()| template function to the interface's C++ " 110 "the |interface_name()| template function to the interface's C++ "
111 "wrapper?"; 111 "wrapper?";
112 return NULL; 112 return NULL;
113 } 113 }
114 114
115 return InterfaceList::GetInstance()->GetInterfaceForPPB(interface_name); 115 return InterfaceList::GetInstance()->GetInterfaceForPPB(interface_name);
116 } 116 }
117 117
118 // static 118 // static
119 void PluginDispatcher::LogWithSource(PP_Instance instance, 119 void PluginDispatcher::LogWithSource(PP_Instance instance,
120 PP_LogLevel_Dev level, 120 PP_LogLevel level,
121 const std::string& source, 121 const std::string& source,
122 const std::string& value) { 122 const std::string& value) {
123 if (!g_live_dispatchers || !g_instance_to_dispatcher) 123 if (!g_live_dispatchers || !g_instance_to_dispatcher)
124 return; 124 return;
125 125
126 if (instance) { 126 if (instance) {
127 InstanceToDispatcherMap::iterator found = 127 InstanceToDispatcherMap::iterator found =
128 g_instance_to_dispatcher->find(instance); 128 g_instance_to_dispatcher->find(instance);
129 if (found != g_instance_to_dispatcher->end()) { 129 if (found != g_instance_to_dispatcher->end()) {
130 // Send just to this specific dispatcher. 130 // Send just to this specific dispatcher.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 DLOG_IF(INFO, reply_params.sequence() != 0) 346 DLOG_IF(INFO, reply_params.sequence() != 0)
347 << "Pepper resource reply message received but the resource doesn't " 347 << "Pepper resource reply message received but the resource doesn't "
348 "exist (probably has been destroyed)."; 348 "exist (probably has been destroyed).";
349 return; 349 return;
350 } 350 }
351 resource->OnReplyReceived(reply_params, nested_msg); 351 resource->OnReplyReceived(reply_params, nested_msg);
352 } 352 }
353 353
354 } // namespace proxy 354 } // namespace proxy
355 } // namespace ppapi 355 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.h ('k') | ppapi/proxy/plugin_globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698