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

Issue 10169036: WebSocket Pepper API: the second Close() should not return error code. (Closed)

Created:
8 years, 8 months ago by Takashi Toyoshima
Modified:
8 years, 8 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: the second Close() should not return error code. The WebSocket API defines that call to Close() on CLOSED state must do nothing and cause no error. Currently Pepper API returns PP_ERROR_INPROGRESS. This error code is confusing. We should return PP_OK here. BUG=124866 TEST=browser_tests --gtest_filter='*WebSocket*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133894

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix grammar nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -8 lines) Patch
M ppapi/api/ppb_websocket.idl View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/c/ppb_websocket.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/cpp/websocket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_websocket.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_websocket_impl.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Takashi Toyoshima
Hi David, Could you look into this change? When user call to Close() and call ...
8 years, 8 months ago (2012-04-24 19:48:20 UTC) #1
dmichael (off chromium)
lgtm https://chromiumcodereview.appspot.com/10169036/diff/1/ppapi/api/ppb_websocket.idl File ppapi/api/ppb_websocket.idl (right): https://chromiumcodereview.appspot.com/10169036/diff/1/ppapi/api/ppb_websocket.idl#newcode272 ppapi/api/ppb_websocket.idl:272: * Returns <code>PP_ERROR_INPROGRESS</code> if previous call to Close() ...
8 years, 8 months ago (2012-04-24 20:10:13 UTC) #2
Takashi Toyoshima
https://chromiumcodereview.appspot.com/10169036/diff/1/ppapi/api/ppb_websocket.idl File ppapi/api/ppb_websocket.idl (right): https://chromiumcodereview.appspot.com/10169036/diff/1/ppapi/api/ppb_websocket.idl#newcode272 ppapi/api/ppb_websocket.idl:272: * Returns <code>PP_ERROR_INPROGRESS</code> if previous call to Close() is ...
8 years, 8 months ago (2012-04-25 02:53:29 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/10169036/8001
8 years, 8 months ago (2012-04-25 02:53:46 UTC) #4
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 11:39:23 UTC) #5
Change committed as 133894

Powered by Google App Engine
This is Rietveld 408576698