| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 Fri Dec 16 14:25:06 2011. */ | 6 /* From dev/ppb_websocket_dev.idl modified Mon Dec 19 19:44:12 2011. */ |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } PP_WebSocketMessageType_Dev; | 77 } PP_WebSocketMessageType_Dev; |
| 78 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_WebSocketMessageType_Dev, 4); | 78 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_WebSocketMessageType_Dev, 4); |
| 79 /** | 79 /** |
| 80 * @} | 80 * @} |
| 81 */ | 81 */ |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * @addtogroup Interfaces | 84 * @addtogroup Interfaces |
| 85 * @{ | 85 * @{ |
| 86 */ | 86 */ |
| 87 struct PPB_WebSocket_Dev { | 87 struct PPB_WebSocket_Dev_0_1 { |
| 88 /** | 88 /** |
| 89 * Create() creates a WebSocket instance. | 89 * Create() creates a WebSocket instance. |
| 90 * | 90 * |
| 91 * @param[in] instance A <code>PP_Instance</code> identifying the instance | 91 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
| 92 * with the WebSocket. | 92 * with the WebSocket. |
| 93 * | 93 * |
| 94 * @return A <code>PP_Resource</code> corresponding to a WebSocket if | 94 * @return A <code>PP_Resource</code> corresponding to a WebSocket if |
| 95 * successful. | 95 * successful. |
| 96 */ | 96 */ |
| 97 PP_Resource (*Create)(PP_Instance instance); | 97 PP_Resource (*Create)(PP_Instance instance); |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 * | 315 * |
| 316 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a | 316 * @param[in] web_socket A <code>PP_Resource</code> corresponding to a |
| 317 * WebSocket. | 317 * WebSocket. |
| 318 * | 318 * |
| 319 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the | 319 * @return Returns a <code>PP_VARTYPE_STRING</code> var. If called before the |
| 320 * connection is established, it contains the empty string. Return a | 320 * connection is established, it contains the empty string. Return a |
| 321 * <code>PP_VARTYPE_UNDEFINED</code> if called on an invalid resource. | 321 * <code>PP_VARTYPE_UNDEFINED</code> if called on an invalid resource. |
| 322 */ | 322 */ |
| 323 struct PP_Var (*GetURL)(PP_Resource web_socket); | 323 struct PP_Var (*GetURL)(PP_Resource web_socket); |
| 324 }; | 324 }; |
| 325 |
| 326 typedef struct PPB_WebSocket_Dev_0_1 PPB_WebSocket_Dev; |
| 325 /** | 327 /** |
| 326 * @} | 328 * @} |
| 327 */ | 329 */ |
| 328 | 330 |
| 329 #endif /* PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_ */ | 331 #endif /* PPAPI_C_DEV_PPB_WEBSOCKET_DEV_H_ */ |
| 330 | 332 |
| OLD | NEW |