| 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</code> interface providing | 7 * This file defines the <code>PPB_WebSocket</code> interface providing |
| 8 * bi-directional, full-duplex, communications over a single TCP socket. | 8 * bi-directional, full-duplex, communications over a single TCP socket. |
| 9 */ | 9 */ |
| 10 label Chrome { | 10 label Chrome { |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 /** | 384 /** |
| 385 * GetExtensions() returns the extensions selected by the server for the | 385 * GetExtensions() returns the extensions selected by the server for the |
| 386 * specified WebSocket connection. | 386 * specified WebSocket connection. |
| 387 * | 387 * |
| 388 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a | 388 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a |
| 389 * WebSocket. | 389 * WebSocket. |
| 390 * | 390 * |
| 391 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the | 391 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the |
| 392 * connection is established, the var's data is an empty string. Returns a | 392 * connection is established, the var's data is an empty string. Returns a |
| 393 * <code>PP_VARTYPE_UNDEFINED</code> if called on an invalid resource. | 393 * <code>PP_VARTYPE_UNDEFINED</code> if called on an invalid resource. |
| 394 * Currently the var's data for valid resources are always an empty string. | |
| 395 */ | 394 */ |
| 396 PP_Var GetExtensions([in] PP_Resource web_socket); | 395 PP_Var GetExtensions([in] PP_Resource web_socket); |
| 397 | 396 |
| 398 /** | 397 /** |
| 399 * GetProtocol() returns the sub-protocol chosen by the server for the | 398 * GetProtocol() returns the sub-protocol chosen by the server for the |
| 400 * specified WebSocket connection. | 399 * specified WebSocket connection. |
| 401 * | 400 * |
| 402 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a | 401 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a |
| 403 * WebSocket. | 402 * WebSocket. |
| 404 * | 403 * |
| (...skipping 22 matching lines...) Expand all Loading... |
| 427 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a | 426 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a |
| 428 * WebSocket. | 427 * WebSocket. |
| 429 * | 428 * |
| 430 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the | 429 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the |
| 431 * connection is established, the var contains the empty string. Returns a | 430 * connection is established, the var contains the empty string. Returns a |
| 432 * <code>PP_VARTYPE_UNDEFINED</code> if this function is called on an | 431 * <code>PP_VARTYPE_UNDEFINED</code> if this function is called on an |
| 433 * invalid resource. | 432 * invalid resource. |
| 434 */ | 433 */ |
| 435 PP_Var GetURL([in] PP_Resource web_socket); | 434 PP_Var GetURL([in] PP_Resource web_socket); |
| 436 }; | 435 }; |
| OLD | NEW |