| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 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 | 5 |
| 6 // Note: this file defines hooks for all pepper related srpc calls | 6 // Note: this file defines hooks for all pepper related srpc calls |
| 7 // it would be nice to keep this synchronized with | 7 // it would be nice to keep this synchronized with |
| 8 // src/shared/ppapi_proxy/ppb_rpc_server.cc | 8 // src/shared/ppapi_proxy/ppb_rpc_server.cc |
| 9 // which is a generated file | 9 // which is a generated file |
| 10 #include "native_client/src/shared/srpc/nacl_srpc.h" | 10 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 11 #include "native_client/src/shared/platform/nacl_log.h" | 11 #include "native_client/src/shared/platform/nacl_log.h" |
| 12 #include "native_client/src/trusted/sel_universal/multimedia.h" | |
| 13 #include "native_client/src/trusted/sel_universal/pepper_emu.h" | 12 #include "native_client/src/trusted/sel_universal/pepper_emu.h" |
| 13 #include "native_client/src/trusted/sel_universal/primitives.h" |
| 14 #include "native_client/src/trusted/sel_universal/rpc_universal.h" | 14 #include "native_client/src/trusted/sel_universal/rpc_universal.h" |
| 15 #include "native_client/src/trusted/sel_universal/srpc_helper.h" | 15 #include "native_client/src/trusted/sel_universal/srpc_helper.h" |
| 16 | 16 |
| 17 #include <stdio.h> | 17 #include <stdio.h> |
| 18 #include <string> | 18 #include <string> |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // we currently only use this for pushing events upstream | 22 // we currently only use this for pushing events upstream |
| 23 IMultimedia* GlobalMultiMediaInterface = 0; | 23 IMultimedia* GlobalMultiMediaInterface = 0; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Register Core and misc interfaces | 108 // Register Core and misc interfaces |
| 109 ncl->AddUpcallRpc(TUPLE(PPB_Core_ReleaseResource, :i:)); | 109 ncl->AddUpcallRpc(TUPLE(PPB_Core_ReleaseResource, :i:)); |
| 110 ncl->AddUpcallRpc(TUPLE(PPB_GetInterface, :s:i)); | 110 ncl->AddUpcallRpc(TUPLE(PPB_GetInterface, :s:i)); |
| 111 ncl->AddUpcallRpc(TUPLE(ReleaseResourceMultipleTimes, :ii:)); | 111 ncl->AddUpcallRpc(TUPLE(ReleaseResourceMultipleTimes, :ii:)); |
| 112 ncl->AddUpcallRpc(TUPLE(PPB_Core_CallOnMainThread, :iii:)); | 112 ncl->AddUpcallRpc(TUPLE(PPB_Core_CallOnMainThread, :iii:)); |
| 113 // This is the only rpc for now that can be called from | 113 // This is the only rpc for now that can be called from |
| 114 // a nexe thread other than main | 114 // a nexe thread other than main |
| 115 // c.f. src/shared/ppapi_proxy/upcall_server.cc | 115 // c.f. src/shared/ppapi_proxy/upcall_server.cc |
| 116 ncl->AddUpcallRpcSecondary(TUPLE(PPB_Core_CallOnMainThread, :iii:)); | 116 ncl->AddUpcallRpcSecondary(TUPLE(PPB_Core_CallOnMainThread, :iii:)); |
| 117 } | 117 } |
| OLD | NEW |