| 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_PPP_RPC_H_ | 11 #ifndef GEN_PPAPI_PROXY_PPP_RPC_H_ |
| 12 #define GEN_PPAPI_PROXY_PPP_RPC_H_ | 12 #define GEN_PPAPI_PROXY_PPP_RPC_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 ObjectStubRpcClient { | 20 class ObjectStubRpcClient { |
| 18 public: | 21 public: |
| 19 static NaClSrpcError HasProperty( | 22 static NaClSrpcError HasProperty( |
| 20 NaClSrpcChannel* channel, | 23 NaClSrpcChannel* channel, |
| 21 nacl_abi_size_t capability_bytes, char* capability, | 24 nacl_abi_size_t capability_bytes, char* capability, |
| 22 nacl_abi_size_t name_bytes, char* name, | 25 nacl_abi_size_t name_bytes, char* name, |
| 23 nacl_abi_size_t exception_in_bytes, char* exception_in, | 26 nacl_abi_size_t exception_in_bytes, char* exception_in, |
| 24 int32_t* success, | 27 int32_t* success, |
| 25 nacl_abi_size_t* exception_bytes, char* exception); | 28 nacl_abi_size_t* exception_bytes, char* exception); |
| 26 static NaClSrpcError HasMethod( | 29 static NaClSrpcError HasMethod( |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 CompletionCallbackRpcClient(); | 98 CompletionCallbackRpcClient(); |
| 96 CompletionCallbackRpcClient(const CompletionCallbackRpcClient&); | 99 CompletionCallbackRpcClient(const CompletionCallbackRpcClient&); |
| 97 void operator=(const CompletionCallbackRpcClient); | 100 void operator=(const CompletionCallbackRpcClient); |
| 98 }; // class CompletionCallbackRpcClient | 101 }; // class CompletionCallbackRpcClient |
| 99 | 102 |
| 100 class PppRpcClient { | 103 class PppRpcClient { |
| 101 public: | 104 public: |
| 102 static NaClSrpcError PPP_InitializeModule( | 105 static NaClSrpcError PPP_InitializeModule( |
| 103 NaClSrpcChannel* channel, | 106 NaClSrpcChannel* channel, |
| 104 int32_t pid, | 107 int32_t pid, |
| 105 int64_t module, | 108 PP_Module module, |
| 106 NaClSrpcImcDescType upcall_channel_desc, | 109 NaClSrpcImcDescType upcall_channel_desc, |
| 107 char* service_description, | 110 char* service_description, |
| 108 int32_t* nacl_pid, | 111 int32_t* nacl_pid, |
| 109 int32_t* success); | 112 int32_t* success); |
| 110 static NaClSrpcError PPP_ShutdownModule( | 113 static NaClSrpcError PPP_ShutdownModule( |
| 111 NaClSrpcChannel* channel); | 114 NaClSrpcChannel* channel); |
| 112 static NaClSrpcError PPP_GetInterface( | 115 static NaClSrpcError PPP_GetInterface( |
| 113 NaClSrpcChannel* channel, | 116 NaClSrpcChannel* channel, |
| 114 char* interface_name, | 117 char* interface_name, |
| 115 int32_t* exports_interface_name); | 118 int32_t* exports_interface_name); |
| 116 | 119 |
| 117 private: | 120 private: |
| 118 PppRpcClient(); | 121 PppRpcClient(); |
| 119 PppRpcClient(const PppRpcClient&); | 122 PppRpcClient(const PppRpcClient&); |
| 120 void operator=(const PppRpcClient); | 123 void operator=(const PppRpcClient); |
| 121 }; // class PppRpcClient | 124 }; // class PppRpcClient |
| 122 | 125 |
| 123 class PppAudioDevRpcClient { | 126 class PppAudioDevRpcClient { |
| 124 public: | 127 public: |
| 125 static NaClSrpcError PPP_Audio_Dev_StreamCreated( | 128 static NaClSrpcError PPP_Audio_Dev_StreamCreated( |
| 126 NaClSrpcChannel* channel, | 129 NaClSrpcChannel* channel, |
| 127 int64_t instance, | 130 PP_Instance instance, |
| 128 NaClSrpcImcDescType out_shm, | 131 NaClSrpcImcDescType out_shm, |
| 129 int32_t out_shm_size, | 132 int32_t out_shm_size, |
| 130 NaClSrpcImcDescType out_socket); | 133 NaClSrpcImcDescType out_socket); |
| 131 | 134 |
| 132 private: | 135 private: |
| 133 PppAudioDevRpcClient(); | 136 PppAudioDevRpcClient(); |
| 134 PppAudioDevRpcClient(const PppAudioDevRpcClient&); | 137 PppAudioDevRpcClient(const PppAudioDevRpcClient&); |
| 135 void operator=(const PppAudioDevRpcClient); | 138 void operator=(const PppAudioDevRpcClient); |
| 136 }; // class PppAudioDevRpcClient | 139 }; // class PppAudioDevRpcClient |
| 137 | 140 |
| 138 class PppInstanceRpcClient { | 141 class PppInstanceRpcClient { |
| 139 public: | 142 public: |
| 140 static NaClSrpcError PPP_Instance_DidCreate( | 143 static NaClSrpcError PPP_Instance_DidCreate( |
| 141 NaClSrpcChannel* channel, | 144 NaClSrpcChannel* channel, |
| 142 int64_t instance, | 145 PP_Instance instance, |
| 143 int32_t argc, | 146 int32_t argc, |
| 144 nacl_abi_size_t argn_bytes, char* argn, | 147 nacl_abi_size_t argn_bytes, char* argn, |
| 145 nacl_abi_size_t argv_bytes, char* argv, | 148 nacl_abi_size_t argv_bytes, char* argv, |
| 146 int32_t* success); | 149 int32_t* success); |
| 147 static NaClSrpcError PPP_Instance_DidDestroy( | 150 static NaClSrpcError PPP_Instance_DidDestroy( |
| 148 NaClSrpcChannel* channel, | 151 NaClSrpcChannel* channel, |
| 149 int64_t instance); | 152 PP_Instance instance); |
| 150 static NaClSrpcError PPP_Instance_DidChangeView( | 153 static NaClSrpcError PPP_Instance_DidChangeView( |
| 151 NaClSrpcChannel* channel, | 154 NaClSrpcChannel* channel, |
| 152 int64_t instance, | 155 PP_Instance instance, |
| 153 nacl_abi_size_t position_bytes, int32_t* position, | 156 nacl_abi_size_t position_bytes, int32_t* position, |
| 154 nacl_abi_size_t clip_bytes, int32_t* clip); | 157 nacl_abi_size_t clip_bytes, int32_t* clip); |
| 155 static NaClSrpcError PPP_Instance_DidChangeFocus( | 158 static NaClSrpcError PPP_Instance_DidChangeFocus( |
| 156 NaClSrpcChannel* channel, | 159 NaClSrpcChannel* channel, |
| 157 int64_t instance, | 160 PP_Instance instance, |
| 158 bool has_focus); | 161 bool has_focus); |
| 159 static NaClSrpcError PPP_Instance_HandleInputEvent( | 162 static NaClSrpcError PPP_Instance_HandleInputEvent( |
| 160 NaClSrpcChannel* channel, | 163 NaClSrpcChannel* channel, |
| 161 int64_t instance, | 164 PP_Instance instance, |
| 162 nacl_abi_size_t event_data_bytes, char* event_data, | 165 nacl_abi_size_t event_data_bytes, char* event_data, |
| 163 int32_t* success); | 166 int32_t* success); |
| 164 static NaClSrpcError PPP_Instance_HandleDocumentLoad( | 167 static NaClSrpcError PPP_Instance_HandleDocumentLoad( |
| 165 NaClSrpcChannel* channel, | 168 NaClSrpcChannel* channel, |
| 166 int64_t instance, | 169 PP_Instance instance, |
| 167 int64_t url_loader, | 170 PP_Resource url_loader, |
| 168 int32_t* success); | 171 int32_t* success); |
| 169 static NaClSrpcError PPP_Instance_GetInstanceObject( | 172 static NaClSrpcError PPP_Instance_GetInstanceObject( |
| 170 NaClSrpcChannel* channel, | 173 NaClSrpcChannel* channel, |
| 171 int64_t instance, | 174 PP_Instance instance, |
| 172 nacl_abi_size_t* capability_bytes, char* capability); | 175 nacl_abi_size_t* capability_bytes, char* capability); |
| 173 | 176 |
| 174 private: | 177 private: |
| 175 PppInstanceRpcClient(); | 178 PppInstanceRpcClient(); |
| 176 PppInstanceRpcClient(const PppInstanceRpcClient&); | 179 PppInstanceRpcClient(const PppInstanceRpcClient&); |
| 177 void operator=(const PppInstanceRpcClient); | 180 void operator=(const PppInstanceRpcClient); |
| 178 }; // class PppInstanceRpcClient | 181 }; // class PppInstanceRpcClient |
| 179 | 182 |
| 180 | 183 |
| 181 | 184 |
| 182 #endif // GEN_PPAPI_PROXY_PPP_RPC_H_ | 185 #endif // GEN_PPAPI_PROXY_PPP_RPC_H_ |
| 183 | 186 |
| OLD | NEW |