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

Side by Side Diff: src/trusted/plugin/srpc_client.cc

Issue 2981011: Move plugin/srpc contents to the more appropriately named plugin/common.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 10 years, 5 months 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 | « src/trusted/plugin/srpc_client.h ('k') | src/trusted/plugin/srt_socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/trusted/plugin/srpc_client.h ('k') | src/trusted/plugin/srt_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698