| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 | 7 |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "native_client/src/shared/platform/nacl_log.h" | 12 #include "native_client/src/shared/platform/nacl_log.h" |
| 13 #include "native_client/src/shared/npruntime/npmodule.h" | 13 #include "native_client/src/trusted/plugin/browser_interface.h" |
| 14 | 14 #include "native_client/src/trusted/plugin/connected_socket.h" |
| 15 #include "native_client/src/trusted/plugin/srpc/browser_interface.h" | 15 #include "native_client/src/trusted/plugin/desc_based_handle.h" |
| 16 #include "native_client/src/trusted/plugin/srpc/connected_socket.h" | 16 #include "native_client/src/trusted/plugin/plugin.h" |
| 17 #include "native_client/src/trusted/plugin/srpc/scriptable_handle.h" | 17 #include "native_client/src/trusted/plugin/scriptable_handle.h" |
| 18 #include "native_client/src/trusted/plugin/srpc/srpc_client.h" | 18 #include "native_client/src/trusted/plugin/srpc_client.h" |
| 19 #include "native_client/src/trusted/plugin/srpc/utility.h" | 19 #include "native_client/src/trusted/plugin/utility.h" |
| 20 #include "native_client/src/trusted/plugin/srpc/desc_based_handle.h" | |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 // TODO(sehr): again, not reentrant. See bug 605. | 23 // TODO(sehr): again, not reentrant. See bug 605. |
| 25 PLUGIN_JMPBUF srpc_env; | 24 PLUGIN_JMPBUF srpc_env; |
| 26 | 25 |
| 27 void SignalHandler(int value) { | 26 void SignalHandler(int value) { |
| 28 PLUGIN_PRINTF(("SrpcClient::SignalHandler()\n")); | 27 PLUGIN_PRINTF(("SrpcClient::SignalHandler()\n")); |
| 29 PLUGIN_LONGJMP(srpc_env, value); | 28 PLUGIN_LONGJMP(srpc_env, value); |
| 30 } | 29 } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 PLUGIN_PRINTF(("SrpcClient::Invoke: returned err %s\n", | 161 PLUGIN_PRINTF(("SrpcClient::Invoke: returned err %s\n", |
| 163 NaClSrpcErrorString(err))); | 162 NaClSrpcErrorString(err))); |
| 164 return false; | 163 return false; |
| 165 } | 164 } |
| 166 | 165 |
| 167 PLUGIN_PRINTF(("SrpcClient::Invoke: done\n")); | 166 PLUGIN_PRINTF(("SrpcClient::Invoke: done\n")); |
| 168 return true; | 167 return true; |
| 169 } | 168 } |
| 170 | 169 |
| 171 } // namespace plugin | 170 } // namespace plugin |
| OLD | NEW |