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 <signal.h> | 8 #include <signal.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include "native_client/src/shared/platform/nacl_sync.h" | 11 #include "native_client/src/shared/platform/nacl_sync.h" |
12 #include "native_client/src/shared/platform/nacl_threads.h" | 12 #include "native_client/src/shared/platform/nacl_threads.h" |
13 | |
14 #include "native_client/src/trusted/desc/nacl_desc_imc.h" | 13 #include "native_client/src/trusted/desc/nacl_desc_imc.h" |
15 | 14 |
16 #include "native_client/src/trusted/plugin/srpc/connected_socket.h" | 15 #include "native_client/src/trusted/plugin/connected_socket.h" |
17 #include "native_client/src/trusted/plugin/srpc/plugin.h" | 16 #include "native_client/src/trusted/plugin/plugin.h" |
18 #include "native_client/src/trusted/plugin/srpc/srpc_client.h" | 17 #include "native_client/src/trusted/plugin/srpc_client.h" |
19 #include "native_client/src/trusted/plugin/srpc/utility.h" | 18 #include "native_client/src/trusted/plugin/utility.h" |
20 #include "native_client/src/trusted/plugin/npapi/video.h" | |
21 | 19 |
22 namespace { | 20 namespace { |
23 | 21 |
24 PLUGIN_JMPBUF socket_env; | 22 PLUGIN_JMPBUF socket_env; |
25 | 23 |
26 void SignalHandler(int value) { | 24 void SignalHandler(int value) { |
27 PLUGIN_PRINTF(("ConnectedSocket::SignalHandler()\n")); | 25 PLUGIN_PRINTF(("ConnectedSocket::SignalHandler()\n")); |
28 | 26 |
29 PLUGIN_LONGJMP(socket_env, value); | 27 PLUGIN_LONGJMP(socket_env, value); |
30 } | 28 } |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 124 |
127 ConnectedSocket::~ConnectedSocket() { | 125 ConnectedSocket::~ConnectedSocket() { |
128 PLUGIN_PRINTF(("ConnectedSocket::~ConnectedSocket(%p)\n", | 126 PLUGIN_PRINTF(("ConnectedSocket::~ConnectedSocket(%p)\n", |
129 static_cast<void*>(this))); | 127 static_cast<void*>(this))); |
130 | 128 |
131 // Free the SRPC connection. | 129 // Free the SRPC connection. |
132 delete srpc_client_; | 130 delete srpc_client_; |
133 } | 131 } |
134 | 132 |
135 } // namespace plugin | 133 } // namespace plugin |
OLD | NEW |