| 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 /* From ppb_websocket.idl modified Wed Feb 15 11:18:43 2012. */ | 6 /* From ppb_websocket.idl modified Thu Mar 8 05:35:06 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_WEBSOCKET_H_ | 8 #ifndef PPAPI_C_PPB_WEBSOCKET_H_ |
| 9 #define PPAPI_C_PPB_WEBSOCKET_H_ | 9 #define PPAPI_C_PPB_WEBSOCKET_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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 /** | 378 /** |
| 379 * GetExtensions() returns the extensions selected by the server for the | 379 * GetExtensions() returns the extensions selected by the server for the |
| 380 * specified WebSocket connection. | 380 * specified WebSocket connection. |
| 381 * | 381 * |
| 382 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a | 382 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a |
| 383 * WebSocket. | 383 * WebSocket. |
| 384 * | 384 * |
| 385 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the | 385 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the |
| 386 * connection is established, the var's data is an empty string. Returns a | 386 * connection is established, the var's data is an empty string. Returns a |
| 387 * <code>PP_VARTYPE_UNDEFINED</code> if called on an invalid resource. | 387 * <code>PP_VARTYPE_UNDEFINED</code> if called on an invalid resource. |
| 388 * Currently the var's data for valid resources are always an empty string. | |
| 389 */ | 388 */ |
| 390 struct PP_Var (*GetExtensions)(PP_Resource web_socket); | 389 struct PP_Var (*GetExtensions)(PP_Resource web_socket); |
| 391 /** | 390 /** |
| 392 * GetProtocol() returns the sub-protocol chosen by the server for the | 391 * GetProtocol() returns the sub-protocol chosen by the server for the |
| 393 * specified WebSocket connection. | 392 * specified WebSocket connection. |
| 394 * | 393 * |
| 395 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a | 394 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a |
| 396 * WebSocket. | 395 * WebSocket. |
| 397 * | 396 * |
| 398 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the | 397 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the |
| (...skipping 27 matching lines...) Expand all Loading... |
| 426 struct PP_Var (*GetURL)(PP_Resource web_socket); | 425 struct PP_Var (*GetURL)(PP_Resource web_socket); |
| 427 }; | 426 }; |
| 428 | 427 |
| 429 typedef struct PPB_WebSocket_1_0 PPB_WebSocket; | 428 typedef struct PPB_WebSocket_1_0 PPB_WebSocket; |
| 430 /** | 429 /** |
| 431 * @} | 430 * @} |
| 432 */ | 431 */ |
| 433 | 432 |
| 434 #endif /* PPAPI_C_PPB_WEBSOCKET_H_ */ | 433 #endif /* PPAPI_C_PPB_WEBSOCKET_H_ */ |
| 435 | 434 |
| OLD | NEW |