| OLD | NEW |
| 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # RPC methods used to implement PPB_WebSocket calls from the plugin. | 5 # RPC methods used to implement PPB_WebSocket calls from the plugin. |
| 6 # See ppapi/c/ppb_websocket.h for interface details. | 6 # See ppapi/c/ppb_websocket.h for interface details. |
| 7 | 7 |
| 8 { | 8 { |
| 9 'name': 'PpbWebSocketRpc', | 9 'name': 'PpbWebSocketRpc', |
| 10 'rpcs': [ | 10 'rpcs': [ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 ['url', 'char[]'], # PP_Var | 25 ['url', 'char[]'], # PP_Var |
| 26 ['protocols', 'char[]'], # PP_Var[] | 26 ['protocols', 'char[]'], # PP_Var[] |
| 27 ['protocol_count', 'int32_t'], # uint32_t | 27 ['protocol_count', 'int32_t'], # uint32_t |
| 28 ['callback_id', 'int32_t'], # PP_CompletionCallback | 28 ['callback_id', 'int32_t'], # PP_CompletionCallback |
| 29 ], | 29 ], |
| 30 'outputs': [['pp_error', 'int32_t'], # int32_t | 30 'outputs': [['pp_error', 'int32_t'], # int32_t |
| 31 ] | 31 ] |
| 32 }, | 32 }, |
| 33 {'name': 'PPB_WebSocket_Close', | 33 {'name': 'PPB_WebSocket_Close', |
| 34 'inputs': [['ws', 'PP_Resource'], # PP_Resource | 34 'inputs': [['ws', 'PP_Resource'], # PP_Resource |
| 35 ['code', 'int32_t'], # uint16_t | 35 ['code', 'int32_t'], # PP_WebSocketStatusCode |
| 36 ['reason', 'char[]'], # PP_Var | 36 ['reason', 'char[]'], # PP_Var |
| 37 ['callback_id', 'int32_t'], # PP_CompletionCallback | 37 ['callback_id', 'int32_t'], # PP_CompletionCallback |
| 38 ], | 38 ], |
| 39 'outputs': [['pp_error', 'int32_t'], # int32_t | 39 'outputs': [['pp_error', 'int32_t'], # int32_t |
| 40 ] | 40 ] |
| 41 }, | 41 }, |
| 42 {'name': 'PPB_WebSocket_ReceiveMessage', | 42 {'name': 'PPB_WebSocket_ReceiveMessage', |
| 43 'inputs': [['ws', 'PP_Resource'], # PP_Resource | 43 'inputs': [['ws', 'PP_Resource'], # PP_Resource |
| 44 ['callback_id', 'int32_t'], # PP_CompletionCallback | 44 ['callback_id', 'int32_t'], # PP_CompletionCallback |
| 45 ], | 45 ], |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 ] | 97 ] |
| 98 }, | 98 }, |
| 99 {'name': 'PPB_WebSocket_GetURL', | 99 {'name': 'PPB_WebSocket_GetURL', |
| 100 'inputs': [['ws', 'PP_Resource'], # PP_Resource | 100 'inputs': [['ws', 'PP_Resource'], # PP_Resource |
| 101 ], | 101 ], |
| 102 'outputs': [['url', 'char[]'], # PP_Var | 102 'outputs': [['url', 'char[]'], # PP_Var |
| 103 ] | 103 ] |
| 104 } | 104 } |
| 105 ] | 105 ] |
| 106 } | 106 } |
| OLD | NEW |