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

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: 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') | ppapi/tests/test_websocket.cc » ('J')
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..5700f830a27e90809123363564f2b8552bcd6cdb 100644
--- a/ppapi/api/ppb_websocket.idl
+++ b/ppapi/api/ppb_websocket.idl
@@ -58,6 +58,13 @@ enum PP_WebSocketReadyState {
[assert_size(4)]
enum PP_WebSocketCloseCode {
/**
+ * 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 = 65535,
dmichael (off chromium) 2012/05/14 16:10:49 Maybe you should use -1? Since code is unsigned in
Takashi Toyoshima 2012/05/15 10:55:28 Yes, in the same reason, I defined the equivalent
+
+ /**
* Status codes in the range 0-999 are not used.
*/
« no previous file with comments | « no previous file | ppapi/c/ppb_websocket.h » ('j') | ppapi/tests/test_websocket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698