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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 NaClSrpcClosure* done, | 1274 NaClSrpcClosure* done, |
1275 PP_Resource response, | 1275 PP_Resource response, |
1276 PP_Resource* file_ref); | 1276 PP_Resource* file_ref); |
1277 | 1277 |
1278 private: | 1278 private: |
1279 PpbURLResponseInfoRpcServer(); | 1279 PpbURLResponseInfoRpcServer(); |
1280 PpbURLResponseInfoRpcServer(const PpbURLResponseInfoRpcServer&); | 1280 PpbURLResponseInfoRpcServer(const PpbURLResponseInfoRpcServer&); |
1281 void operator=(const PpbURLResponseInfoRpcServer); | 1281 void operator=(const PpbURLResponseInfoRpcServer); |
1282 }; // class PpbURLResponseInfoRpcServer | 1282 }; // class PpbURLResponseInfoRpcServer |
1283 | 1283 |
| 1284 class PpbWebSocketRpcServer { |
| 1285 public: |
| 1286 static void PPB_WebSocket_Create( |
| 1287 NaClSrpcRpc* rpc, |
| 1288 NaClSrpcClosure* done, |
| 1289 PP_Instance instance, |
| 1290 PP_Resource* resource); |
| 1291 static void PPB_WebSocket_IsWebSocket( |
| 1292 NaClSrpcRpc* rpc, |
| 1293 NaClSrpcClosure* done, |
| 1294 PP_Resource instance, |
| 1295 int32_t* is_websocket); |
| 1296 static void PPB_WebSocket_Connect( |
| 1297 NaClSrpcRpc* rpc, |
| 1298 NaClSrpcClosure* done, |
| 1299 PP_Resource ws, |
| 1300 nacl_abi_size_t url_bytes, char* url, |
| 1301 nacl_abi_size_t protocols_bytes, char* protocols, |
| 1302 int32_t protocol_count, |
| 1303 int32_t callback_id, |
| 1304 int32_t* pp_error); |
| 1305 static void PPB_WebSocket_Close( |
| 1306 NaClSrpcRpc* rpc, |
| 1307 NaClSrpcClosure* done, |
| 1308 PP_Resource ws, |
| 1309 int32_t code, |
| 1310 nacl_abi_size_t reason_bytes, char* reason, |
| 1311 int32_t callback_id, |
| 1312 int32_t* pp_error); |
| 1313 static void PPB_WebSocket_ReceiveMessage( |
| 1314 NaClSrpcRpc* rpc, |
| 1315 NaClSrpcClosure* done, |
| 1316 PP_Resource ws, |
| 1317 int32_t callback_id, |
| 1318 int32_t* pp_error); |
| 1319 static void PPB_WebSocket_SendMessage( |
| 1320 NaClSrpcRpc* rpc, |
| 1321 NaClSrpcClosure* done, |
| 1322 PP_Resource ws, |
| 1323 nacl_abi_size_t message_bytes, char* message, |
| 1324 int32_t* pp_error); |
| 1325 static void PPB_WebSocket_GetBufferedAmount( |
| 1326 NaClSrpcRpc* rpc, |
| 1327 NaClSrpcClosure* done, |
| 1328 PP_Resource ws, |
| 1329 int64_t* buffered_amount); |
| 1330 static void PPB_WebSocket_GetCloseCode( |
| 1331 NaClSrpcRpc* rpc, |
| 1332 NaClSrpcClosure* done, |
| 1333 PP_Resource ws, |
| 1334 int32_t* close_code); |
| 1335 static void PPB_WebSocket_GetCloseReason( |
| 1336 NaClSrpcRpc* rpc, |
| 1337 NaClSrpcClosure* done, |
| 1338 PP_Resource ws, |
| 1339 nacl_abi_size_t* reason_bytes, char* reason); |
| 1340 static void PPB_WebSocket_GetCloseWasClean( |
| 1341 NaClSrpcRpc* rpc, |
| 1342 NaClSrpcClosure* done, |
| 1343 PP_Resource ws, |
| 1344 int32_t* was_clean); |
| 1345 static void PPB_WebSocket_GetExtensions( |
| 1346 NaClSrpcRpc* rpc, |
| 1347 NaClSrpcClosure* done, |
| 1348 PP_Resource ws, |
| 1349 nacl_abi_size_t* extensions_bytes, char* extensions); |
| 1350 static void PPB_WebSocket_GetProtocol( |
| 1351 NaClSrpcRpc* rpc, |
| 1352 NaClSrpcClosure* done, |
| 1353 PP_Resource ws, |
| 1354 nacl_abi_size_t* protocol_bytes, char* protocol); |
| 1355 static void PPB_WebSocket_GetReadyState( |
| 1356 NaClSrpcRpc* rpc, |
| 1357 NaClSrpcClosure* done, |
| 1358 PP_Resource ws, |
| 1359 int32_t* ready_state); |
| 1360 static void PPB_WebSocket_GetURL( |
| 1361 NaClSrpcRpc* rpc, |
| 1362 NaClSrpcClosure* done, |
| 1363 PP_Resource ws, |
| 1364 nacl_abi_size_t* url_bytes, char* url); |
| 1365 static void PPB_WebSocket_SetBinaryType( |
| 1366 NaClSrpcRpc* rpc, |
| 1367 NaClSrpcClosure* done, |
| 1368 PP_Resource ws, |
| 1369 int32_t binary_type, |
| 1370 int32_t* success); |
| 1371 static void PPB_WebSocket_GetBinaryType( |
| 1372 NaClSrpcRpc* rpc, |
| 1373 NaClSrpcClosure* done, |
| 1374 PP_Resource ws, |
| 1375 int32_t* binary_type); |
| 1376 |
| 1377 private: |
| 1378 PpbWebSocketRpcServer(); |
| 1379 PpbWebSocketRpcServer(const PpbWebSocketRpcServer&); |
| 1380 void operator=(const PpbWebSocketRpcServer); |
| 1381 }; // class PpbWebSocketRpcServer |
| 1382 |
1284 class PpbWidgetRpcServer { | 1383 class PpbWidgetRpcServer { |
1285 public: | 1384 public: |
1286 static void PPB_Widget_IsWidget( | 1385 static void PPB_Widget_IsWidget( |
1287 NaClSrpcRpc* rpc, | 1386 NaClSrpcRpc* rpc, |
1288 NaClSrpcClosure* done, | 1387 NaClSrpcClosure* done, |
1289 PP_Resource resource, | 1388 PP_Resource resource, |
1290 int32_t* is_widget); | 1389 int32_t* is_widget); |
1291 static void PPB_Widget_Paint( | 1390 static void PPB_Widget_Paint( |
1292 NaClSrpcRpc* rpc, | 1391 NaClSrpcRpc* rpc, |
1293 NaClSrpcClosure* done, | 1392 NaClSrpcClosure* done, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 }; // class PpbZoomRpcServer | 1439 }; // class PpbZoomRpcServer |
1341 | 1440 |
1342 class PpbRpcs { | 1441 class PpbRpcs { |
1343 public: | 1442 public: |
1344 static NaClSrpcHandlerDesc srpc_methods[]; | 1443 static NaClSrpcHandlerDesc srpc_methods[]; |
1345 }; // class PpbRpcs | 1444 }; // class PpbRpcs |
1346 | 1445 |
1347 | 1446 |
1348 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ | 1447 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ |
1349 | 1448 |
OLD | NEW |