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

Issue 9227008: WebSocket Pepper API: SRPC proxy implementation (Closed)

Created:
8 years, 11 months ago by Takashi Toyoshima
Modified:
8 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

WebSocket Pepper API: SRPC proxy implementation Implement PPB_WebSocket _Dev SRPC proxy - support PP_Var write back in plugin/browser callback bridge - resource leak fix in browser_callback Enable all WebSocket related ppapi tests in NaCl - support TEST_PPAPI_NACL_VIA_HTTP_WITH_WS macro in ppapi_uitest - fix a test which expects synchronous completion BUG=87310 TEST=ui_tests --gtest_filter='PPAPINaClTest.WebSocket_*' Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118268

Patch Set 1 #

Patch Set 2 : rebase (s/kMaxVarSize/kMaxReturnVarSize/) #

Patch Set 3 : fix win32 build #

Total comments: 20

Patch Set 4 : reflect review comments except for ReceiveMessage #

Patch Set 5 : rebase and add TODO for performance optimization #

Total comments: 4

Patch Set 6 : add a comment #

Patch Set 7 : fix browser callback #

Patch Set 8 : rebase because two ppapi_proxy related CLs are landed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1736 lines, -19 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 3 chunks +25 lines, -5 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_callback.h View 3 chunks +16 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_callback.cc View 1 2 3 4 5 6 7 chunks +36 lines, -4 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_globals.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc View 1 2 3 4 5 1 chunk +360 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/build.scons View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/nacl.scons View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_callback.h View 3 chunks +10 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_callback.cc View 1 2 3 5 chunks +27 lines, -6 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.h View 1 chunk +24 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_websocket.cc View 1 2 3 4 1 chunk +366 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 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 +292 lines, -0 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 +250 lines, -0 lines 0 comments Download
A ppapi/native_client/src/shared/ppapi_proxy/ppb_websocket.srpc View 1 chunk +118 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/run_srpcgen.py View 1 2 3 4 5 6 7 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 +99 lines, -0 lines 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 +83 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_websocket.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Takashi Toyoshima
Hi, I finally finish SRPC proxy implementation. Could you review this CL? I'm sorry but ...
8 years, 11 months ago (2012-01-16 16:59:22 UTC) #1
dmichael (off chromium)
http://codereview.chromium.org/9227008/diff/4008/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/9227008/diff/4008/chrome/test/ui/ppapi_uitest.cc#newcode139 chrome/test/ui/ppapi_uitest.cc:139: RunTestViaHTTP(test_case); I'm fine with this way, but couldn't you ...
8 years, 11 months ago (2012-01-17 23:32:45 UTC) #2
Takashi Toyoshima
http://codereview.chromium.org/9227008/diff/4008/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/9227008/diff/4008/chrome/test/ui/ppapi_uitest.cc#newcode139 chrome/test/ui/ppapi_uitest.cc:139: RunTestViaHTTP(test_case); Yes, I can. Is it make things simple? ...
8 years, 11 months ago (2012-01-18 11:07:16 UTC) #3
dmichael (off chromium)
lgtm http://codereview.chromium.org/9227008/diff/4008/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/9227008/diff/4008/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc#newcode35 ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc:35: DebugPrintf("PPB_WebSocket::Create: resource=%"NACL_PRIu32"\n", *resource); On 2012/01/18 11:07:16, toyoshim wrote: ...
8 years, 11 months ago (2012-01-18 17:04:40 UTC) #4
dmichael (off chromium)
lgtm http://codereview.chromium.org/9227008/diff/13001/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/9227008/diff/13001/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc#newcode52 ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc:52: DebugPrintf("PPB_WebSocket::IsWebSocket: success=%d\n", *success); On 2012/01/18 17:04:40, dmichael wrote: ...
8 years, 11 months ago (2012-01-18 17:07:47 UTC) #5
Takashi Toyoshima
http://codereview.chromium.org/9227008/diff/13001/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/9227008/diff/13001/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc#newcode144 ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_websocket_rpc_server.cc:144: MakeRemoteCompletionCallback(rpc->channel, callback_id, &callback_var); On 2012/01/18 17:04:40, dmichael wrote: > ...
8 years, 11 months ago (2012-01-19 04:18:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/9227008/13002
8 years, 11 months ago (2012-01-19 04:19:27 UTC) #7
commit-bot: I haz the power
Presubmit check for 9227008-13002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-19 04:19:37 UTC) #8
Takashi Toyoshima
Could not use CQ for style violation by auto generated file. I use try -b ...
8 years, 11 months ago (2012-01-19 04:21:46 UTC) #9
Takashi Toyoshima
FileIO_Open, FileIO_TouchQuery, and FileRef constantly fail. I'll check my callback related change.
8 years, 11 months ago (2012-01-19 06:05:14 UTC) #10
Takashi Toyoshima
Oh, sorry. Miss to pass check_result_func and get_size_read_func through in browser callback. I'll try -b ...
8 years, 11 months ago (2012-01-19 07:07:27 UTC) #11
Takashi Toyoshima
8 years, 11 months ago (2012-01-19 08:37:17 UTC) #12
win_rel's failure is unrelated flakiness.
And latest rebase looks no problem.
I land it now.

Powered by Google App Engine
This is Rietveld 408576698