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

Issue 9802027: WebSocket Pepper API: synchronous completion support (Closed)

Created:
8 years, 9 months ago by Takashi Toyoshima
Modified:
8 years, 8 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

WebSocket Pepper API: synchronous completion support. Allow optional remote callback, then perform synchronous completion if receiving data is enough small for SRPC buffer. Otherwise invoke another callback for asynchronous completion from main thread. BUG=87310 TEST=browser_tests --gtest_filter=PPAPINaclTest.WebSocket_StressedSendReceive Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132413

Patch Set 1 #

Total comments: 7

Patch Set 2 : fix arguments name #

Patch Set 3 : fix nits #

Patch Set 4 : use CallOnMainThread #

Patch Set 5 : rebase #

Patch Set 6 : Add large data over 64KB to stressed test #

Total comments: 8

Patch Set 7 : reflects comments except for adding tests #

Patch Set 8 : rebase #

Patch Set 9 : add TestAbortCalls #

Total comments: 4

Patch Set 10 : fix typos #

Patch Set 11 : rebase #

Patch Set 12 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -27 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc View 1 2 3 4 5 6 3 chunks +27 lines, -13 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc View 1 2 1 chunk +28 lines, -3 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_websocket.srpc View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/tests/test_websocket.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_websocket.cc View 1 2 3 4 5 6 7 8 9 5 chunks +164 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Takashi Toyoshima
Hi David, I'm trying to support synchronous completion in ReceiveMessage. If received data is less ...
8 years, 9 months ago (2012-03-28 12:05:47 UTC) #1
dmichael (off chromium)
http://codereview.chromium.org/9802027/diff/1/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc File ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc (right): http://codereview.chromium.org/9802027/diff/1/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc#newcode152 ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc:152: // about re-entrancy. This comment's not valid anymore, right? ...
8 years, 8 months ago (2012-04-02 03:28:01 UTC) #2
Takashi Toyoshima
Thank you for great advice. Now, it works!! Could you review this for landing again? ...
8 years, 8 months ago (2012-04-05 06:44:00 UTC) #3
dmichael (off chromium)
Looks good overall, thanks! If possible, it would be great to add a test where ...
8 years, 8 months ago (2012-04-06 17:12:12 UTC) #4
Takashi Toyoshima
Hi David. Sorry for late update. I added a test which contains abort tests for ...
8 years, 8 months ago (2012-04-11 11:28:45 UTC) #5
dmichael (off chromium)
lgtm http://codereview.chromium.org/9802027/diff/17005/ppapi/tests/test_websocket.cc File ppapi/tests/test_websocket.cc (right): http://codereview.chromium.org/9802027/diff/17005/ppapi/tests/test_websocket.cc#newcode773 ppapi/tests/test_websocket.cc:773: // Firstly, make sure the behavior for SendMessage(). ...
8 years, 8 months ago (2012-04-13 18:48:21 UTC) #6
Takashi Toyoshima
thanks! http://codereview.chromium.org/9802027/diff/17005/ppapi/tests/test_websocket.cc File ppapi/tests/test_websocket.cc (right): http://codereview.chromium.org/9802027/diff/17005/ppapi/tests/test_websocket.cc#newcode773 ppapi/tests/test_websocket.cc:773: // Firstly, make sure the behavior for SendMessage(). ...
8 years, 8 months ago (2012-04-16 14:09:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/9802027/29001
8 years, 8 months ago (2012-04-16 14:13:58 UTC) #8
commit-bot: I haz the power
Presubmit check for 9802027-29001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-16 14:14:05 UTC) #9
Takashi Toyoshima
oops. auto-generated code breaks presubmit check. I'll use dcommit.
8 years, 8 months ago (2012-04-16 14:15:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/9802027/27013
8 years, 8 months ago (2012-04-16 16:43:02 UTC) #11
commit-bot: I haz the power
8 years, 8 months ago (2012-04-16 16:43:08 UTC) #12
Presubmit check for 9802027-27013 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
--tbr was specified, skipping OWNERS check

** Presubmit Warnings **
Found lines longer than 80 characters (first 5 shown).
  ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc, line 3301, 83
chars

Powered by Google App Engine
This is Rietveld 408576698