| OLD | NEW |
| 1 // Copyright (c) 2010 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
| 6 // | 6 // |
| 7 // Automatically generated code. See srpcgen.py | 7 // Automatically generated code. See srpcgen.py |
| 8 // | 8 // |
| 9 // NaCl Simple Remote Procedure Call interface abstractions. | 9 // NaCl Simple Remote Procedure Call interface abstractions. |
| 10 | 10 |
| 11 #ifndef GEN_PPAPI_PROXY_UPCALL_H_ | 11 #ifndef GEN_PPAPI_PROXY_UPCALL_H_ |
| 12 #define GEN_PPAPI_PROXY_UPCALL_H_ | 12 #define GEN_PPAPI_PROXY_UPCALL_H_ |
| 13 #ifndef __native_client__ | 13 #ifndef __native_client__ |
| 14 #include "native_client/src/include/portability.h" | 14 #include "native_client/src/include/portability.h" |
| 15 #endif // __native_client__ | 15 #endif // __native_client__ |
| 16 #include "native_client/src/shared/srpc/nacl_srpc.h" | 16 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 17 #include "ppapi/c/pp_instance.h" |
| 18 #include "ppapi/c/pp_module.h" |
| 19 #include "ppapi/c/pp_resource.h" |
| 17 class PppUpcallRpcClient { | 20 class PppUpcallRpcClient { |
| 18 public: | 21 public: |
| 19 static NaClSrpcError PPB_Core_CallOnMainThread( | 22 static NaClSrpcError PPB_Core_CallOnMainThread( |
| 20 NaClSrpcChannel* channel, | 23 NaClSrpcChannel* channel, |
| 21 int32_t closure_number, | 24 int32_t closure_number, |
| 22 int32_t delay_in_milliseconds); | 25 int32_t delay_in_milliseconds); |
| 23 static NaClSrpcError PPB_Graphics2D_Flush( | 26 static NaClSrpcError PPB_Graphics2D_Flush( |
| 24 NaClSrpcChannel* channel, | 27 NaClSrpcChannel* channel, |
| 25 int64_t device_context, | 28 int64_t device_context, |
| 26 int32_t callback_index, | 29 int32_t callback_index, |
| 27 int32_t* result); | 30 int32_t* result); |
| 28 | 31 |
| 29 private: | 32 private: |
| 30 PppUpcallRpcClient(); | 33 PppUpcallRpcClient(); |
| 31 PppUpcallRpcClient(const PppUpcallRpcClient&); | 34 PppUpcallRpcClient(const PppUpcallRpcClient&); |
| 32 void operator=(const PppUpcallRpcClient); | 35 void operator=(const PppUpcallRpcClient); |
| 33 }; // class PppUpcallRpcClient | 36 }; // class PppUpcallRpcClient |
| 34 | 37 |
| 35 | 38 |
| 36 | 39 |
| 37 #endif // GEN_PPAPI_PROXY_UPCALL_H_ | 40 #endif // GEN_PPAPI_PROXY_UPCALL_H_ |
| 38 | 41 |
| OLD | NEW |