| Index: ppapi/native_client/src/shared/ppapi_proxy/ppb_websocket.srpc | 
| diff --git a/ppapi/native_client/src/shared/ppapi_proxy/ppb_websocket.srpc b/ppapi/native_client/src/shared/ppapi_proxy/ppb_websocket.srpc | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..9f6a8c03d9f7ea65055d834696e5a1e503db489d | 
| --- /dev/null | 
| +++ b/ppapi/native_client/src/shared/ppapi_proxy/ppb_websocket.srpc | 
| @@ -0,0 +1,118 @@ | 
| +# Copyright (c) 2012 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_WebSocket_Dev calls from the plugin. | 
| +# See ppapi/c/dev/ppb_websocket_dev.h for interface details. | 
| + | 
| +{ | 
| + 'name': 'PpbWebSocketRpc', | 
| + 'rpcs': [ | 
| +          {'name': 'PPB_WebSocket_Create', | 
| +           'inputs': [['instance', 'PP_Instance'],     # PP_Instance | 
| +                     ], | 
| +           'outputs': [['resource', 'PP_Resource'],    # PP_Resource | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_IsWebSocket', | 
| +           'inputs': [['instance', 'PP_Resource'],     # PP_Resource | 
| +                     ], | 
| +           'outputs': [['is_websocket', 'int32_t'],    # PP_Bool | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_Connect', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                       ['url', 'char[]'],              # PP_Var | 
| +                       ['protocols', 'char[]'],        # PP_Var[] | 
| +                       ['protocol_count', 'int32_t'],  # uint32_t | 
| +                       ['callback_id', 'int32_t'],     # PP_CompletionCallback | 
| +                     ], | 
| +           'outputs': [['pp_error', 'int32_t'],        # int32_t | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_Close', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                      ['code', 'int32_t'],             # uint16_t | 
| +                      ['reason', 'char[]'],            # PP_Var | 
| +                      ['callback_id', 'int32_t'],      # PP_CompletionCallback | 
| +                     ], | 
| +           'outputs': [['pp_error', 'int32_t'],        # int32_t | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_ReceiveMessage', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                      ['callback_id', 'int32_t'],      # PP_CompletionCallback | 
| +                     ], | 
| +           'outputs': [['pp_error', 'int32_t'],        # int32_t | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_SendMessage', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                      ['message', 'char[]'],           # PP_Var | 
| +                     ], | 
| +           'outputs': [['pp_error', 'int32_t'],        # int32_t | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetBufferedAmount', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                     ], | 
| +           'outputs': [['buffered_amount', 'int64_t'], # uint64_t | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetCloseCode', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                     ], | 
| +           'outputs': [['close_code', 'int32_t'],      # uint16_t | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetCloseReason', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                     ], | 
| +           'outputs': [['reason', 'char[]'],           # PP_Var | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetCloseWasClean', | 
| +            'inputs': [['ws', 'PP_Resource'],          # PP_Resource | 
| +                      ], | 
| +            'outputs': [['was_clean', 'int32_t'],      # PP_Bool | 
| +                       ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetExtensions', | 
| +            'inputs': [['ws', 'PP_Resource'],          # PP_Resource | 
| +                      ], | 
| +            'outputs': [['extensions', 'char[]'],      # PP_Var | 
| +                       ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetProtocol', | 
| +            'inputs': [['ws', 'PP_Resource'],          # PP_Resource | 
| +                      ], | 
| +            'outputs': [['protocol', 'char[]'],        # PP_Var | 
| +                       ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetReadyState', | 
| +            'inputs': [['ws', 'PP_Resource'],          # PP_Resource | 
| +                      ], | 
| +            'outputs': [['ready_state', 'int32_t'],    # PP_WebSocketReadyState | 
| +                       ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetURL', | 
| +            'inputs': [['ws', 'PP_Resource'],          # PP_Resource | 
| +                      ], | 
| +            'outputs': [['url', 'char[]'],             # PP_Var | 
| +                       ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_SetBinaryType', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                      ['binary_type', 'int32_t'],      # PP_WebSocketBinaryType | 
| +                     ], | 
| +           'outputs': [['success', 'int32_t'],         # PP_Bool | 
| +                      ] | 
| +          }, | 
| +          {'name': 'PPB_WebSocket_GetBinaryType', | 
| +           'inputs': [['ws', 'PP_Resource'],           # PP_Resource | 
| +                     ], | 
| +           'outputs': [['binary_type', 'int32_t'],     # PP_WebSocketBinaryType | 
| +                      ] | 
| +          } | 
| +         ] | 
| +} | 
|  |