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

Side by Side Diff: ppapi/api/dev/ppb_websocket_dev.idl

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 | « no previous file | ppapi/c/dev/ppb_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 /** 6 /**
7 * This file defines the <code>PPB_WebSocket_Dev</code> interface. 7 * This file defines the <code>PPB_WebSocket_Dev</code> interface.
8 */ 8 */
9 label Chrome { 9 label Chrome {
10 M17 = 0.1, 10 M17 = 0.1,
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 * Default type is <code>PP_WEBSOCKETBINARYTYPE_BLOB_DEV</code>. 329 * Default type is <code>PP_WEBSOCKETBINARYTYPE_BLOB_DEV</code>.
330 * 330 *
331 * Currently, Blob bindings is not supported in Pepper, so receiving binary 331 * Currently, Blob bindings is not supported in Pepper, so receiving binary
332 * type is always ArrayBuffer. To ensure backward compatibility, you must 332 * type is always ArrayBuffer. To ensure backward compatibility, you must
333 * call this function with 333 * call this function with
334 * <code>PP_WEBSOCKETBINARYTYPE_ARRAYBUFFER_DEV</code> to use binary frames. 334 * <code>PP_WEBSOCKETBINARYTYPE_ARRAYBUFFER_DEV</code> to use binary frames.
335 * 335 *
336 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a 336 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a
337 * WebSocket. 337 * WebSocket.
338 * 338 *
339 * @param[in] binary_type Binary object type for receibing binary frames 339 * @param[in] binary_type Binary object type for receiving binary frames
340 * representation. 340 * representation.
341 * 341 *
342 * @return Returns <code>PP_FALSE</code> if the specified type is not 342 * @return Returns <code>PP_FALSE</code> if the specified type is not
343 * supported. Otherwise, returns <code>PP_TRUE</code>. 343 * supported. Otherwise, returns <code>PP_TRUE</code>.
344 */ 344 */
345 [version=0.9] 345 [version=0.9]
346 PP_Bool SetBinaryType([in] PP_Resource web_socket, 346 PP_Bool SetBinaryType([in] PP_Resource web_socket,
347 [in] PP_WebSocketBinaryType_Dev binary_type); 347 [in] PP_WebSocketBinaryType_Dev binary_type);
348 348
349 /** 349 /**
350 * GetBinaryType() returns currently specified binary object type for 350 * GetBinaryType() returns the currently specified binary object type for
351 * receiving binary frames representation. 351 * receiving binary frames.
352 * 352 *
353 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a 353 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a
354 * WebSocket. 354 * WebSocket.
355 * 355 *
356 * @return Returns <code>PP_WebSocketBinaryType_Dev</code> represents 356 * @return Returns <code>PP_WebSocketBinaryType_Dev</code> represents the
357 * current binary object type. 357 * current binary object type.
358 */ 358 */
359 [version=0.9] 359 [version=0.9]
360 PP_WebSocketBinaryType_Dev GetBinaryType([in] PP_Resource web_socket); 360 PP_WebSocketBinaryType_Dev GetBinaryType([in] PP_Resource web_socket);
361 }; 361 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_websocket_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698