OLD | NEW |
1 // Copyright (c) 2012 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 |
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 NaClSrpcClosure* done, | 1234 NaClSrpcClosure* done, |
1235 PP_Resource response, | 1235 PP_Resource response, |
1236 PP_Resource* file_ref); | 1236 PP_Resource* file_ref); |
1237 | 1237 |
1238 private: | 1238 private: |
1239 PpbURLResponseInfoRpcServer(); | 1239 PpbURLResponseInfoRpcServer(); |
1240 PpbURLResponseInfoRpcServer(const PpbURLResponseInfoRpcServer&); | 1240 PpbURLResponseInfoRpcServer(const PpbURLResponseInfoRpcServer&); |
1241 void operator=(const PpbURLResponseInfoRpcServer); | 1241 void operator=(const PpbURLResponseInfoRpcServer); |
1242 }; // class PpbURLResponseInfoRpcServer | 1242 }; // class PpbURLResponseInfoRpcServer |
1243 | 1243 |
| 1244 class PpbWebSocketRpcServer { |
| 1245 public: |
| 1246 static void PPB_WebSocket_Create( |
| 1247 NaClSrpcRpc* rpc, |
| 1248 NaClSrpcClosure* done, |
| 1249 PP_Instance instance, |
| 1250 PP_Resource* resource); |
| 1251 static void PPB_WebSocket_IsWebSocket( |
| 1252 NaClSrpcRpc* rpc, |
| 1253 NaClSrpcClosure* done, |
| 1254 PP_Resource instance, |
| 1255 int32_t* is_websocket); |
| 1256 static void PPB_WebSocket_Connect( |
| 1257 NaClSrpcRpc* rpc, |
| 1258 NaClSrpcClosure* done, |
| 1259 PP_Resource ws, |
| 1260 nacl_abi_size_t url_bytes, char* url, |
| 1261 nacl_abi_size_t protocols_bytes, char* protocols, |
| 1262 int32_t protocol_count, |
| 1263 int32_t callback_id, |
| 1264 int32_t* pp_error); |
| 1265 static void PPB_WebSocket_Close( |
| 1266 NaClSrpcRpc* rpc, |
| 1267 NaClSrpcClosure* done, |
| 1268 PP_Resource ws, |
| 1269 int32_t code, |
| 1270 nacl_abi_size_t reason_bytes, char* reason, |
| 1271 int32_t callback_id, |
| 1272 int32_t* pp_error); |
| 1273 static void PPB_WebSocket_ReceiveMessage( |
| 1274 NaClSrpcRpc* rpc, |
| 1275 NaClSrpcClosure* done, |
| 1276 PP_Resource ws, |
| 1277 int32_t callback_id, |
| 1278 int32_t* pp_error); |
| 1279 static void PPB_WebSocket_SendMessage( |
| 1280 NaClSrpcRpc* rpc, |
| 1281 NaClSrpcClosure* done, |
| 1282 PP_Resource ws, |
| 1283 nacl_abi_size_t message_bytes, char* message, |
| 1284 int32_t* pp_error); |
| 1285 static void PPB_WebSocket_GetBufferedAmount( |
| 1286 NaClSrpcRpc* rpc, |
| 1287 NaClSrpcClosure* done, |
| 1288 PP_Resource ws, |
| 1289 int64_t* buffered_amount); |
| 1290 static void PPB_WebSocket_GetCloseCode( |
| 1291 NaClSrpcRpc* rpc, |
| 1292 NaClSrpcClosure* done, |
| 1293 PP_Resource ws, |
| 1294 int32_t* close_code); |
| 1295 static void PPB_WebSocket_GetCloseReason( |
| 1296 NaClSrpcRpc* rpc, |
| 1297 NaClSrpcClosure* done, |
| 1298 PP_Resource ws, |
| 1299 nacl_abi_size_t* reason_bytes, char* reason); |
| 1300 static void PPB_WebSocket_GetCloseWasClean( |
| 1301 NaClSrpcRpc* rpc, |
| 1302 NaClSrpcClosure* done, |
| 1303 PP_Resource ws, |
| 1304 int32_t* was_clean); |
| 1305 static void PPB_WebSocket_GetExtensions( |
| 1306 NaClSrpcRpc* rpc, |
| 1307 NaClSrpcClosure* done, |
| 1308 PP_Resource ws, |
| 1309 nacl_abi_size_t* extensions_bytes, char* extensions); |
| 1310 static void PPB_WebSocket_GetProtocol( |
| 1311 NaClSrpcRpc* rpc, |
| 1312 NaClSrpcClosure* done, |
| 1313 PP_Resource ws, |
| 1314 nacl_abi_size_t* protocol_bytes, char* protocol); |
| 1315 static void PPB_WebSocket_GetReadyState( |
| 1316 NaClSrpcRpc* rpc, |
| 1317 NaClSrpcClosure* done, |
| 1318 PP_Resource ws, |
| 1319 int32_t* ready_state); |
| 1320 static void PPB_WebSocket_GetURL( |
| 1321 NaClSrpcRpc* rpc, |
| 1322 NaClSrpcClosure* done, |
| 1323 PP_Resource ws, |
| 1324 nacl_abi_size_t* url_bytes, char* url); |
| 1325 static void PPB_WebSocket_SetBinaryType( |
| 1326 NaClSrpcRpc* rpc, |
| 1327 NaClSrpcClosure* done, |
| 1328 PP_Resource ws, |
| 1329 int32_t binary_type, |
| 1330 int32_t* success); |
| 1331 static void PPB_WebSocket_GetBinaryType( |
| 1332 NaClSrpcRpc* rpc, |
| 1333 NaClSrpcClosure* done, |
| 1334 PP_Resource ws, |
| 1335 int32_t* binary_type); |
| 1336 |
| 1337 private: |
| 1338 PpbWebSocketRpcServer(); |
| 1339 PpbWebSocketRpcServer(const PpbWebSocketRpcServer&); |
| 1340 void operator=(const PpbWebSocketRpcServer); |
| 1341 }; // class PpbWebSocketRpcServer |
| 1342 |
1244 class PpbWidgetRpcServer { | 1343 class PpbWidgetRpcServer { |
1245 public: | 1344 public: |
1246 static void PPB_Widget_IsWidget( | 1345 static void PPB_Widget_IsWidget( |
1247 NaClSrpcRpc* rpc, | 1346 NaClSrpcRpc* rpc, |
1248 NaClSrpcClosure* done, | 1347 NaClSrpcClosure* done, |
1249 PP_Resource resource, | 1348 PP_Resource resource, |
1250 int32_t* is_widget); | 1349 int32_t* is_widget); |
1251 static void PPB_Widget_Paint( | 1350 static void PPB_Widget_Paint( |
1252 NaClSrpcRpc* rpc, | 1351 NaClSrpcRpc* rpc, |
1253 NaClSrpcClosure* done, | 1352 NaClSrpcClosure* done, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 }; // class PpbZoomRpcServer | 1399 }; // class PpbZoomRpcServer |
1301 | 1400 |
1302 class PpbRpcs { | 1401 class PpbRpcs { |
1303 public: | 1402 public: |
1304 static NaClSrpcHandlerDesc srpc_methods[]; | 1403 static NaClSrpcHandlerDesc srpc_methods[]; |
1305 }; // class PpbRpcs | 1404 }; // class PpbRpcs |
1306 | 1405 |
1307 | 1406 |
1308 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ | 1407 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ |
1309 | 1408 |
OLD | NEW |