Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_websocket.srpc

Issue 9227008: WebSocket Pepper API: SRPC proxy implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase because two ppapi_proxy related CLs are landed Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4 #
5 # RPC methods used to implement PPB_WebSocket_Dev calls from the plugin.
6 # See ppapi/c/dev/ppb_websocket_dev.h for interface details.
7
8 {
9 'name': 'PpbWebSocketRpc',
10 'rpcs': [
11 {'name': 'PPB_WebSocket_Create',
12 'inputs': [['instance', 'PP_Instance'], # PP_Instance
13 ],
14 'outputs': [['resource', 'PP_Resource'], # PP_Resource
15 ]
16 },
17 {'name': 'PPB_WebSocket_IsWebSocket',
18 'inputs': [['instance', 'PP_Resource'], # PP_Resource
19 ],
20 'outputs': [['is_websocket', 'int32_t'], # PP_Bool
21 ]
22 },
23 {'name': 'PPB_WebSocket_Connect',
24 'inputs': [['ws', 'PP_Resource'], # PP_Resource
25 ['url', 'char[]'], # PP_Var
26 ['protocols', 'char[]'], # PP_Var[]
27 ['protocol_count', 'int32_t'], # uint32_t
28 ['callback_id', 'int32_t'], # PP_CompletionCallback
29 ],
30 'outputs': [['pp_error', 'int32_t'], # int32_t
31 ]
32 },
33 {'name': 'PPB_WebSocket_Close',
34 'inputs': [['ws', 'PP_Resource'], # PP_Resource
35 ['code', 'int32_t'], # uint16_t
36 ['reason', 'char[]'], # PP_Var
37 ['callback_id', 'int32_t'], # PP_CompletionCallback
38 ],
39 'outputs': [['pp_error', 'int32_t'], # int32_t
40 ]
41 },
42 {'name': 'PPB_WebSocket_ReceiveMessage',
43 'inputs': [['ws', 'PP_Resource'], # PP_Resource
44 ['callback_id', 'int32_t'], # PP_CompletionCallback
45 ],
46 'outputs': [['pp_error', 'int32_t'], # int32_t
47 ]
48 },
49 {'name': 'PPB_WebSocket_SendMessage',
50 'inputs': [['ws', 'PP_Resource'], # PP_Resource
51 ['message', 'char[]'], # PP_Var
52 ],
53 'outputs': [['pp_error', 'int32_t'], # int32_t
54 ]
55 },
56 {'name': 'PPB_WebSocket_GetBufferedAmount',
57 'inputs': [['ws', 'PP_Resource'], # PP_Resource
58 ],
59 'outputs': [['buffered_amount', 'int64_t'], # uint64_t
60 ]
61 },
62 {'name': 'PPB_WebSocket_GetCloseCode',
63 'inputs': [['ws', 'PP_Resource'], # PP_Resource
64 ],
65 'outputs': [['close_code', 'int32_t'], # uint16_t
66 ]
67 },
68 {'name': 'PPB_WebSocket_GetCloseReason',
69 'inputs': [['ws', 'PP_Resource'], # PP_Resource
70 ],
71 'outputs': [['reason', 'char[]'], # PP_Var
72 ]
73 },
74 {'name': 'PPB_WebSocket_GetCloseWasClean',
75 'inputs': [['ws', 'PP_Resource'], # PP_Resource
76 ],
77 'outputs': [['was_clean', 'int32_t'], # PP_Bool
78 ]
79 },
80 {'name': 'PPB_WebSocket_GetExtensions',
81 'inputs': [['ws', 'PP_Resource'], # PP_Resource
82 ],
83 'outputs': [['extensions', 'char[]'], # PP_Var
84 ]
85 },
86 {'name': 'PPB_WebSocket_GetProtocol',
87 'inputs': [['ws', 'PP_Resource'], # PP_Resource
88 ],
89 'outputs': [['protocol', 'char[]'], # PP_Var
90 ]
91 },
92 {'name': 'PPB_WebSocket_GetReadyState',
93 'inputs': [['ws', 'PP_Resource'], # PP_Resource
94 ],
95 'outputs': [['ready_state', 'int32_t'], # PP_WebSocketReadyState
96 ]
97 },
98 {'name': 'PPB_WebSocket_GetURL',
99 'inputs': [['ws', 'PP_Resource'], # PP_Resource
100 ],
101 'outputs': [['url', 'char[]'], # PP_Var
102 ]
103 },
104 {'name': 'PPB_WebSocket_SetBinaryType',
105 'inputs': [['ws', 'PP_Resource'], # PP_Resource
106 ['binary_type', 'int32_t'], # PP_WebSocketBinaryType
107 ],
108 'outputs': [['success', 'int32_t'], # PP_Bool
109 ]
110 },
111 {'name': 'PPB_WebSocket_GetBinaryType',
112 'inputs': [['ws', 'PP_Resource'], # PP_Resource
113 ],
114 'outputs': [['binary_type', 'int32_t'], # PP_WebSocketBinaryType
115 ]
116 }
117 ]
118 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698