| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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_PPB_RPC_H_ | 11 #ifndef GEN_PPAPI_PROXY_PPB_RPC_H_ |
| 12 #define GEN_PPAPI_PROXY_PPB_RPC_H_ | 12 #define GEN_PPAPI_PROXY_PPB_RPC_H_ |
| 13 | 13 |
| 14 #ifndef __native_client__ | 14 #ifndef __native_client__ |
| 15 #include "native_client/src/include/portability.h" | 15 #include "native_client/src/include/portability.h" |
| 16 #endif // __native_client__ | 16 #endif // __native_client__ |
| 17 #include "native_client/src/shared/srpc/nacl_srpc.h" | 17 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 18 #include "ppapi/c/pp_instance.h" | 18 #include "ppapi/c/pp_instance.h" |
| 19 #include "ppapi/c/pp_module.h" | 19 #include "ppapi/c/pp_module.h" |
| 20 #include "ppapi/c/pp_resource.h" | 20 #include "ppapi/c/pp_resource.h" |
| 21 | 21 |
| 22 class NaClFileRpcClient { | 22 class NaClFileRpcClient { |
| 23 public: | 23 public: |
| 24 static NaClSrpcError StreamAsFile( | 24 static NaClSrpcError StreamAsFile( |
| 25 NaClSrpcChannel* channel, | 25 NaClSrpcChannel* channel, |
| 26 PP_Instance instance, | 26 PP_Instance instance, |
| 27 char* url, | 27 const char* url, |
| 28 int32_t callback_id); | 28 int32_t callback_id); |
| 29 static NaClSrpcError GetFileDesc( | 29 static NaClSrpcError GetFileDesc( |
| 30 NaClSrpcChannel* channel, | 30 NaClSrpcChannel* channel, |
| 31 PP_Instance instance, | 31 PP_Instance instance, |
| 32 char* url, | 32 const char* url, |
| 33 NaClSrpcImcDescType* file_desc); | 33 NaClSrpcImcDescType* file_desc); |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 NaClFileRpcClient(); | 36 NaClFileRpcClient(); |
| 37 NaClFileRpcClient(const NaClFileRpcClient&); | 37 NaClFileRpcClient(const NaClFileRpcClient&); |
| 38 void operator=(const NaClFileRpcClient); | 38 void operator=(const NaClFileRpcClient); |
| 39 }; // class NaClFileRpcClient | 39 }; // class NaClFileRpcClient |
| 40 | 40 |
| 41 class PpbRpcClient { | 41 class PpbRpcClient { |
| 42 public: | 42 public: |
| 43 static NaClSrpcError PPB_GetInterface( | 43 static NaClSrpcError PPB_GetInterface( |
| 44 NaClSrpcChannel* channel, | 44 NaClSrpcChannel* channel, |
| 45 char* interface_name, | 45 const char* interface_name, |
| 46 int32_t* exports_interface_name); | 46 int32_t* exports_interface_name); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 PpbRpcClient(); | 49 PpbRpcClient(); |
| 50 PpbRpcClient(const PpbRpcClient&); | 50 PpbRpcClient(const PpbRpcClient&); |
| 51 void operator=(const PpbRpcClient); | 51 void operator=(const PpbRpcClient); |
| 52 }; // class PpbRpcClient | 52 }; // class PpbRpcClient |
| 53 | 53 |
| 54 class PpbAudioRpcClient { | 54 class PpbAudioRpcClient { |
| 55 public: | 55 public: |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 NaClSrpcChannel* channel, | 812 NaClSrpcChannel* channel, |
| 813 PP_Instance instance, | 813 PP_Instance instance, |
| 814 PP_Resource* resource); | 814 PP_Resource* resource); |
| 815 static NaClSrpcError PPB_TCPSocket_Private_IsTCPSocket( | 815 static NaClSrpcError PPB_TCPSocket_Private_IsTCPSocket( |
| 816 NaClSrpcChannel* channel, | 816 NaClSrpcChannel* channel, |
| 817 PP_Resource resource, | 817 PP_Resource resource, |
| 818 int32_t* is_tcp_socket); | 818 int32_t* is_tcp_socket); |
| 819 static NaClSrpcError PPB_TCPSocket_Private_Connect( | 819 static NaClSrpcError PPB_TCPSocket_Private_Connect( |
| 820 NaClSrpcChannel* channel, | 820 NaClSrpcChannel* channel, |
| 821 PP_Resource tcp_socket, | 821 PP_Resource tcp_socket, |
| 822 char* host, | 822 const char* host, |
| 823 int32_t port, | 823 int32_t port, |
| 824 int32_t callback_id, | 824 int32_t callback_id, |
| 825 int32_t* pp_error); | 825 int32_t* pp_error); |
| 826 static NaClSrpcError PPB_TCPSocket_Private_ConnectWithNetAddress( | 826 static NaClSrpcError PPB_TCPSocket_Private_ConnectWithNetAddress( |
| 827 NaClSrpcChannel* channel, | 827 NaClSrpcChannel* channel, |
| 828 PP_Resource tcp_socket, | 828 PP_Resource tcp_socket, |
| 829 nacl_abi_size_t addr_bytes, char* addr, | 829 nacl_abi_size_t addr_bytes, char* addr, |
| 830 int32_t callback_id, | 830 int32_t callback_id, |
| 831 int32_t* pp_error); | 831 int32_t* pp_error); |
| 832 static NaClSrpcError PPB_TCPSocket_Private_GetLocalAddress( | 832 static NaClSrpcError PPB_TCPSocket_Private_GetLocalAddress( |
| 833 NaClSrpcChannel* channel, | 833 NaClSrpcChannel* channel, |
| 834 PP_Resource tcp_socket, | 834 PP_Resource tcp_socket, |
| 835 nacl_abi_size_t* local_addr_bytes, char* local_addr, | 835 nacl_abi_size_t* local_addr_bytes, char* local_addr, |
| 836 int32_t* success); | 836 int32_t* success); |
| 837 static NaClSrpcError PPB_TCPSocket_Private_GetRemoteAddress( | 837 static NaClSrpcError PPB_TCPSocket_Private_GetRemoteAddress( |
| 838 NaClSrpcChannel* channel, | 838 NaClSrpcChannel* channel, |
| 839 PP_Resource tcp_socket, | 839 PP_Resource tcp_socket, |
| 840 nacl_abi_size_t* remote_addr_bytes, char* remote_addr, | 840 nacl_abi_size_t* remote_addr_bytes, char* remote_addr, |
| 841 int32_t* success); | 841 int32_t* success); |
| 842 static NaClSrpcError PPB_TCPSocket_Private_SSLHandshake( | 842 static NaClSrpcError PPB_TCPSocket_Private_SSLHandshake( |
| 843 NaClSrpcChannel* channel, | 843 NaClSrpcChannel* channel, |
| 844 PP_Resource tcp_socket, | 844 PP_Resource tcp_socket, |
| 845 char* server_name, | 845 const char* server_name, |
| 846 int32_t server_port, | 846 int32_t server_port, |
| 847 int32_t callback_id, | 847 int32_t callback_id, |
| 848 int32_t* pp_error); | 848 int32_t* pp_error); |
| 849 static NaClSrpcError PPB_TCPSocket_Private_Read( | 849 static NaClSrpcError PPB_TCPSocket_Private_Read( |
| 850 NaClSrpcChannel* channel, | 850 NaClSrpcChannel* channel, |
| 851 PP_Resource tcp_socket, | 851 PP_Resource tcp_socket, |
| 852 int32_t bytes_to_read, | 852 int32_t bytes_to_read, |
| 853 int32_t callback_id, | 853 int32_t callback_id, |
| 854 nacl_abi_size_t* buffer_bytes, char* buffer, | 854 nacl_abi_size_t* buffer_bytes, char* buffer, |
| 855 int32_t* pp_error_or_bytes); | 855 int32_t* pp_error_or_bytes); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 PpbZoomRpcClient(); | 1116 PpbZoomRpcClient(); |
| 1117 PpbZoomRpcClient(const PpbZoomRpcClient&); | 1117 PpbZoomRpcClient(const PpbZoomRpcClient&); |
| 1118 void operator=(const PpbZoomRpcClient); | 1118 void operator=(const PpbZoomRpcClient); |
| 1119 }; // class PpbZoomRpcClient | 1119 }; // class PpbZoomRpcClient |
| 1120 | 1120 |
| 1121 | 1121 |
| 1122 | 1122 |
| 1123 | 1123 |
| 1124 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ | 1124 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ |
| 1125 | 1125 |
| OLD | NEW |