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

Issue 10332138: WebSocket Pepper API: allow to close connection without code and reason (Closed)

Created:
8 years, 7 months ago by Takashi Toyoshima
Modified:
8 years, 6 months ago
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

WebSocket Pepper API: allow to close connection without code and reason - define PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED to close without status code - omit reason for WebKit API explicitly when code is not specified BUG=none TEST=browser_tests --gtest_filter'PPAPI*WebSocket_*Close' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139764

Patch Set 1 #

Total comments: 8

Patch Set 2 : uint16_t -> enum #

Total comments: 4

Patch Set 3 : reuse 1005 #

Total comments: 7

Patch Set 4 : rebase #

Patch Set 5 : fix nits #

Patch Set 6 : revert enum name change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -24 lines) Patch
M ppapi/api/ppb_websocket.idl View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M ppapi/c/ppb_websocket.h View 1 2 3 4 5 3 chunks +11 lines, -2 lines 0 comments Download
M ppapi/tests/test_websocket.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_websocket_impl.cc View 1 2 2 chunks +28 lines, -21 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Takashi Toyoshima
Hi David, Could you look into this small change to support connection closure without code ...
8 years, 7 months ago (2012-05-14 12:05:03 UTC) #1
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10332138/diff/1/ppapi/api/ppb_websocket.idl File ppapi/api/ppb_websocket.idl (right): https://chromiumcodereview.appspot.com/10332138/diff/1/ppapi/api/ppb_websocket.idl#newcode65 ppapi/api/ppb_websocket.idl:65: PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED = 65535, Maybe you should use -1? Since ...
8 years, 7 months ago (2012-05-14 16:10:49 UTC) #2
Takashi Toyoshima
Thank you for looking. I change type of |code| from uint16_t to enum. https://chromiumcodereview.appspot.com/10332138/diff/1/ppapi/api/ppb_websocket.idl File ...
8 years, 7 months ago (2012-05-15 10:55:28 UTC) #3
dmichael (off chromium)
http://codereview.chromium.org/10332138/diff/8001/ppapi/api/ppb_websocket.idl File ppapi/api/ppb_websocket.idl (left): http://codereview.chromium.org/10332138/diff/8001/ppapi/api/ppb_websocket.idl#oldcode247 ppapi/api/ppb_websocket.idl:247: * @param[in] code The WebSocket close code. This is ...
8 years, 7 months ago (2012-05-15 15:18:33 UTC) #4
Takashi Toyoshima
Hi David, Thank you for looking my change in details. As you said, if enum ...
8 years, 7 months ago (2012-05-16 09:20:32 UTC) #5
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10332138/diff/8015/ppapi/api/ppb_websocket.idl File ppapi/api/ppb_websocket.idl (right): https://chromiumcodereview.appspot.com/10332138/diff/8015/ppapi/api/ppb_websocket.idl#newcode59 ppapi/api/ppb_websocket.idl:59: enum PP_WebSocketStatusCode { Sorry I didn't notice this before... ...
8 years, 7 months ago (2012-05-17 20:03:16 UTC) #6
Takashi Toyoshima
Sorry for late update. https://chromiumcodereview.appspot.com/10332138/diff/8015/ppapi/api/ppb_websocket.idl File ppapi/api/ppb_websocket.idl (right): https://chromiumcodereview.appspot.com/10332138/diff/8015/ppapi/api/ppb_websocket.idl#newcode59 ppapi/api/ppb_websocket.idl:59: enum PP_WebSocketStatusCode { The reason ...
8 years, 6 months ago (2012-05-30 10:15:45 UTC) #7
dmichael (off chromium)
I think it's not worth it to change the enum name. Otherwise LGTM. https://chromiumcodereview.appspot.com/10332138/diff/8015/ppapi/api/ppb_websocket.idl File ...
8 years, 6 months ago (2012-05-30 15:20:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/10332138/21002
8 years, 6 months ago (2012-05-31 06:54:34 UTC) #9
commit-bot: I haz the power
8 years, 6 months ago (2012-05-31 09:25:47 UTC) #10
Change committed as 139764

Powered by Google App Engine
This is Rietveld 408576698