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

Side by Side Diff: ppapi/c/dev/ppb_websocket_dev.h

Issue 9026007: WebSocket Pepper API: WebArrayBuffer support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wen32 build catch missing PP_ToBool 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
« no previous file with comments | « ppapi/api/dev/ppb_websocket_dev.idl ('k') | ppapi/cpp/dev/websocket_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 5
6 /* From dev/ppb_websocket_dev.idl modified Wed Jan 11 14:21:33 2012. */ 6 /* From dev/ppb_websocket_dev.idl modified Wed Jan 18 20:17:45 2012. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_
9 #define PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_ 9 #define PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 * Default type is <code>PP_WEBSOCKETBINARYTYPE_BLOB_DEV</code>. 334 * Default type is <code>PP_WEBSOCKETBINARYTYPE_BLOB_DEV</code>.
335 * 335 *
336 * Currently, Blob bindings is not supported in Pepper, so receiving binary 336 * Currently, Blob bindings is not supported in Pepper, so receiving binary
337 * type is always ArrayBuffer. To ensure backward compatibility, you must 337 * type is always ArrayBuffer. To ensure backward compatibility, you must
338 * call this function with 338 * call this function with
339 * <code>PP_WEBSOCKETBINARYTYPE_ARRAYBUFFER_DEV</code> to use binary frames. 339 * <code>PP_WEBSOCKETBINARYTYPE_ARRAYBUFFER_DEV</code> to use binary frames.
340 * 340 *
341 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a 341 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a
342 * WebSocket. 342 * WebSocket.
343 * 343 *
344 * @param[in] binary_type Binary object type for receibing binary frames 344 * @param[in] binary_type Binary object type for receiving binary frames
345 * representation. 345 * representation.
346 * 346 *
347 * @return Returns <code>PP_FALSE</code> if the specified type is not 347 * @return Returns <code>PP_FALSE</code> if the specified type is not
348 * supported. Otherwise, returns <code>PP_TRUE</code>. 348 * supported. Otherwise, returns <code>PP_TRUE</code>.
349 */ 349 */
350 PP_Bool (*SetBinaryType)(PP_Resource web_socket, 350 PP_Bool (*SetBinaryType)(PP_Resource web_socket,
351 PP_WebSocketBinaryType_Dev binary_type); 351 PP_WebSocketBinaryType_Dev binary_type);
352 /** 352 /**
353 * GetBinaryType() returns currently specified binary object type for 353 * GetBinaryType() returns the currently specified binary object type for
354 * receiving binary frames representation. 354 * receiving binary frames.
355 * 355 *
356 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a 356 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a
357 * WebSocket. 357 * WebSocket.
358 * 358 *
359 * @return Returns <code>PP_WebSocketBinaryType_Dev</code> represents 359 * @return Returns <code>PP_WebSocketBinaryType_Dev</code> represents the
360 * current binary object type. 360 * current binary object type.
361 */ 361 */
362 PP_WebSocketBinaryType_Dev (*GetBinaryType)(PP_Resource web_socket); 362 PP_WebSocketBinaryType_Dev (*GetBinaryType)(PP_Resource web_socket);
363 }; 363 };
364 364
365 typedef struct PPB_WebSocket_Dev_0_9 PPB_WebSocket_Dev; 365 typedef struct PPB_WebSocket_Dev_0_9 PPB_WebSocket_Dev;
366 366
367 struct PPB_WebSocket_Dev_0_1 { 367 struct PPB_WebSocket_Dev_0_1 {
368 PP_Resource (*Create)(PP_Instance instance); 368 PP_Resource (*Create)(PP_Instance instance);
369 PP_Bool (*IsWebSocket)(PP_Resource resource); 369 PP_Bool (*IsWebSocket)(PP_Resource resource);
(...skipping 18 matching lines...) Expand all
388 struct PP_Var (*GetProtocol)(PP_Resource web_socket); 388 struct PP_Var (*GetProtocol)(PP_Resource web_socket);
389 PP_WebSocketReadyState_Dev (*GetReadyState)(PP_Resource web_socket); 389 PP_WebSocketReadyState_Dev (*GetReadyState)(PP_Resource web_socket);
390 struct PP_Var (*GetURL)(PP_Resource web_socket); 390 struct PP_Var (*GetURL)(PP_Resource web_socket);
391 }; 391 };
392 /** 392 /**
393 * @} 393 * @}
394 */ 394 */
395 395
396 #endif /* PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_ */ 396 #endif /* PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_ */
397 397
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_websocket_dev.idl ('k') | ppapi/cpp/dev/websocket_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698