Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: ppapi/api/ppb_websocket.idl

Issue 10332138: WebSocket Pepper API: allow to close connection without code and reason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert enum name change Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/c/ppb_websocket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_websocket.idl
diff --git a/ppapi/api/ppb_websocket.idl b/ppapi/api/ppb_websocket.idl
index 1e138bb80b47bf8a405a99177edef010c7321f7d..0069bb4a169319421542d939ea66fc95e2f00f8b 100644
--- a/ppapi/api/ppb_websocket.idl
+++ b/ppapi/api/ppb_websocket.idl
@@ -58,6 +58,15 @@ enum PP_WebSocketReadyState {
[assert_size(4)]
enum PP_WebSocketCloseCode {
/**
+ * Indicates to request closing connection without status code and reason.
+ *
+ * (Note that the code 1005 is forbidden to send in actual close frames by
+ * the RFC. PP_WebSocket reuses this code internally and the code will never
+ * appear in the actual close frames.)
+ */
+ PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED = 1005,
+
+ /**
* Status codes in the range 0-999 are not used.
*/
@@ -244,7 +253,8 @@ interface PPB_WebSocket {
* @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
« no previous file with comments | « no previous file | ppapi/c/ppb_websocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698