| OLD | NEW |
| 1 // Copyright (c) 2010 The Native Client 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 // SRPC-abstraction wrappers around PPP functions. | 5 // SRPC-abstraction wrappers around PPP functions. |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.h> |
| 8 | 8 |
| 9 #include "native_client/src/include/portability.h" | 9 #include "native_client/src/include/portability.h" |
| 10 #include "native_client/src/include/portability_process.h" | 10 #include "native_client/src/include/portability_process.h" |
| 11 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 11 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 int32_t* exports_interface_name) { | 145 int32_t* exports_interface_name) { |
| 146 NaClSrpcClosureRunner runner(done); | 146 NaClSrpcClosureRunner runner(done); |
| 147 rpc->result = NACL_SRPC_RESULT_APP_ERROR; | 147 rpc->result = NACL_SRPC_RESULT_APP_ERROR; |
| 148 DebugPrintf("PPP_GetInterface('%s')\n", interface_name); | 148 DebugPrintf("PPP_GetInterface('%s')\n", interface_name); |
| 149 // Since the proxy will make calls to proxied interfaces, we need simply | 149 // Since the proxy will make calls to proxied interfaces, we need simply |
| 150 // to know whether the plugin exports a given interface. | 150 // to know whether the plugin exports a given interface. |
| 151 const void* plugin_interface = ::PPP_GetInterface(interface_name); | 151 const void* plugin_interface = ::PPP_GetInterface(interface_name); |
| 152 *exports_interface_name = (plugin_interface != NULL); | 152 *exports_interface_name = (plugin_interface != NULL); |
| 153 rpc->result = NACL_SRPC_RESULT_OK; | 153 rpc->result = NACL_SRPC_RESULT_OK; |
| 154 } | 154 } |
| OLD | NEW |