Chromium Code Reviews| Index: ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc |
| diff --git a/ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc b/ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4a035f23fe14b4d2cec00254c12ac685eb4266eb |
| --- /dev/null |
| +++ b/ppapi/native_client/src/shared/ppapi_proxy/ppb_tcp_socket_private.srpc |
| @@ -0,0 +1,87 @@ |
| +# Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| +# |
| +# RPC methods used to implement PPB_TCPSocket_Private calls from the plugin. |
| +# See ppapi/c/private/ppb_tcp_socket_private.h for interface details. |
| + |
| +{ |
| + 'name': 'PpbTCPSocketPrivate', |
|
polina
2011/11/29 05:20:47
PpbTCPSocketPrivateRpc
ygorshenin
2011/11/29 13:25:18
Done.
|
| + 'rpcs': [ |
| + {'name': 'PPB_TCPSocket_Private_Create', |
| + 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| + ], |
| + 'outputs': [['resource', 'PP_Resource'], # PP_Resource |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_IsTCPSocket', |
| + 'inputs': [['resource', 'PP_Resource'], # PP_Resource |
| + ], |
| + 'outputs': [['is_tcp_socket_private', 'int32_t'], # PP_Bool |
|
polina
2011/11/29 05:20:47
s/private//
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_Connect', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ['host', 'string'], |
|
polina
2011/11/29 05:20:47
# const char*
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ['port', 'int32_t'], |
|
polina
2011/11/29 05:20:47
# uint16_t
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ['callback_id', 'int32_t'], |
|
polina
2011/11/29 05:20:47
# PP_CompletionCallback
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ], |
| + 'outputs': [['pp_error', 'int32_t'], |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_ConnectWithNetAddress', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ['addr', 'char[]'], # PP_NetAddress_Private* |
| + ['callback_id', 'int32_t'], |
|
polina
2011/11/29 05:20:47
same as above
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ], |
| + 'outputs': [['pp_error', 'int32_t'], |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_GetLocalAddress', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ], |
| + 'outputs': [['local_addr', 'char[]'], # PP_NetAddress_Private* |
| + ['success', 'int32_t'], # PP_Bool |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_GetRemoteAddress', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ], |
| + 'outputs': [['remote_addr', 'char[]'], # PP_NetAddress_Private* |
| + ['success', 'int32_t'], # PP_Bool |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_SSLHandshake', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ['server_name', 'string'], |
|
polina
2011/11/29 05:20:47
same as above, here and below
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ['server_port', 'int32_t'], |
| + ['callback_id', 'int32_t'], |
| + ], |
| + 'outputs': [['pp_error', 'int32_t'], |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_Read', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ['bytes_to_read', 'int32_t'], |
| + ['callback_id', 'int32_t'], |
|
polina
2011/11/29 05:20:47
same as above
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ], |
| + 'outputs': [['buffer', 'char[]'], |
|
polina
2011/11/29 05:20:47
# char*
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ['pp_error_or_bytes', 'int32_t'], |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_Write', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ['buffer', 'char[]'], |
|
polina
2011/11/29 05:20:47
# const char*
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ['bytes_to_write', 'int32_t'], |
| + ['callback_id', 'int32_t'] |
|
polina
2011/11/29 05:20:47
same as above
ygorshenin
2011/11/29 13:25:18
Done.
|
| + ], |
| + 'outputs': [['pp_error_or_bytes', 'int32_t'] |
| + ] |
| + }, |
| + {'name': 'PPB_TCPSocket_Private_Disconnect', |
| + 'inputs': [['tcp_socket', 'PP_Resource'], # PP_Resource |
| + ], |
| + 'outputs': [] |
| + }, |
| + ] |
| +} |