| Index: ppapi/c/ppb_websocket.h
|
| diff --git a/ppapi/c/ppb_websocket.h b/ppapi/c/ppb_websocket.h
|
| index 64638822e9c61cee6cc3d942cb33e8d00cb53fc1..7b246203a8575e5b38a139320f4ee236c15aee63 100644
|
| --- a/ppapi/c/ppb_websocket.h
|
| +++ b/ppapi/c/ppb_websocket.h
|
| @@ -3,7 +3,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -/* From ppb_websocket.idl modified Wed Apr 25 11:48:30 2012. */
|
| +/* From ppb_websocket.idl modified Tue May 15 18:32:39 2012. */
|
|
|
| #ifndef PPAPI_C_PPB_WEBSOCKET_H_
|
| #define PPAPI_C_PPB_WEBSOCKET_H_
|
| @@ -72,6 +72,12 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_WebSocketReadyState, 4);
|
| */
|
| typedef enum {
|
| /**
|
| + * Indicates to request closing connection without status code. This code is
|
| + * internally assigned in WebKit, and not based on any WebSocket related
|
| + * specification.
|
| + */
|
| + PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED = -1,
|
| + /**
|
| * Status codes in the range 0-999 are not used.
|
| */
|
| /**
|
| @@ -157,8 +163,8 @@ typedef enum {
|
| */
|
| PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MIN = 4000,
|
| PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MAX = 4999
|
| -} PP_WebSocketCloseCode;
|
| -PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_WebSocketCloseCode, 4);
|
| +} PP_WebSocketStatusCode;
|
| +PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_WebSocketStatusCode, 4);
|
| /**
|
| * @}
|
| */
|
| @@ -246,7 +252,8 @@ struct PPB_WebSocket_1_0 {
|
| * @param[in] web_socket A <code>PP_Resource</code> corresponding to a
|
| * WebSocket.
|
| *
|
| - * @param[in] code The WebSocket close code. This is ignored if it is 0.
|
| + * @param[in] code The WebSocket close code. This is ignored if it is
|
| + * <code>PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED</code>.
|
| * <code>PP_WEBSOCKETSTATUSCODE_NORMAL_CLOSURE</code> must be used for the
|
| * usual case. To indicate some specific error cases, codes in the range
|
| * <code>PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MIN</code> to
|
| @@ -275,7 +282,7 @@ struct PPB_WebSocket_1_0 {
|
| * not finished.
|
| */
|
| int32_t (*Close)(PP_Resource web_socket,
|
| - uint16_t code,
|
| + PP_WebSocketStatusCode code,
|
| struct PP_Var reason,
|
| struct PP_CompletionCallback callback);
|
| /**
|
|
|