| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |