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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/upcall_server.cc

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
6 //
7 // Automatically generated code. See srpcgen.py
8 //
9 // NaCl Simple Remote Procedure Call interface abstractions.
10
11 #include "trusted/srpcgen/upcall.h"
12 #ifdef __native_client__
13 #ifndef UNREFERENCED_PARAMETER
14 #define UNREFERENCED_PARAMETER(P) do { (void) P; } while (0)
15 #endif // UNREFERENCED_PARAMETER
16 #else
17 #include "native_client/src/include/portability.h"
18 #endif // __native_client__
19 #include "native_client/src/shared/srpc/nacl_srpc.h"
20 #include "ppapi/c/pp_instance.h"
21 #include "ppapi/c/pp_module.h"
22 #include "ppapi/c/pp_resource.h"
23
24 namespace {
25
26 static void PPB_Core_CallOnMainThreadDispatcher(
27 NaClSrpcRpc* rpc,
28 NaClSrpcArg** inputs,
29 NaClSrpcArg** outputs,
30 NaClSrpcClosure* done
31 ) {
32 UNREFERENCED_PARAMETER(outputs);
33 PppUpcallRpcServer::PPB_Core_CallOnMainThread(
34 rpc,
35 done,
36 inputs[0]->u.ival,
37 inputs[1]->u.ival,
38 inputs[2]->u.ival
39 );
40 }
41
42 } // namespace
43
44 NaClSrpcHandlerDesc PpbUpcalls::srpc_methods[] = {
45 { "PPB_Core_CallOnMainThread:iii:", PPB_Core_CallOnMainThreadDispatcher },
46 { NULL, NULL }
47 };
48
OLDNEW
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/upcall_client.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698