OLD | NEW |
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 Loading... |
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 }; |
OLD | NEW |