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

Issue 8571002: WebSocket Pepper API: in process API base implementation (Closed)

Created:
9 years, 1 month ago by Takashi Toyoshima
Modified:
9 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, cstefansen, Yuta Kitamura, Yuzo
Visibility:
Public.

Description

- Implement internal API and thunk - Implement base frame for in process API - Add basic unit tests for in process API BUG=87310 TEST=ui_tests --gtest_filter="PPAPITest.WebSocket*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110664

Patch Set 1 #

Patch Set 2 : add non-proxy dummy impl #

Patch Set 3 : Add basic tests #

Patch Set 4 : fix TODO style #

Patch Set 5 : remove unreleased WebKit feature depends #

Total comments: 4

Patch Set 6 : just rebased #

Patch Set 7 : fixed reviewed points #

Patch Set 8 : test name was wrong #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -0 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/tests/test_websocket.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A ppapi/tests/test_websocket.cc View 1 2 1 chunk +44 lines, -0 lines 4 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_websocket_api.h View 1 chunk +41 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_websocket_thunk.cc View 1 1 chunk +147 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_websocket_impl.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_websocket_impl.cc View 1 2 3 4 1 chunk +99 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Takashi Toyoshima
Hi, First, I'd like to land the basic implementation for in process use. This change ...
9 years, 1 month ago (2011-11-16 08:07:05 UTC) #1
dmichael (off chromium)
Just a couple of nits. LGTM http://codereview.chromium.org/8571002/diff/1029/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/8571002/diff/1029/chrome/test/ui/ppapi_uitest.cc#newcode390 chrome/test/ui/ppapi_uitest.cc:390: TEST_PPAPI_IN_PROCESS(WebSocket) I just ...
9 years, 1 month ago (2011-11-17 18:50:57 UTC) #2
Takashi Toyoshima
Thanks! http://codereview.chromium.org/8571002/diff/1029/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/8571002/diff/1029/chrome/test/ui/ppapi_uitest.cc#newcode390 chrome/test/ui/ppapi_uitest.cc:390: TEST_PPAPI_IN_PROCESS(WebSocket) On 2011/11/17 18:50:57, dmichael wrote: > I ...
9 years, 1 month ago (2011-11-18 05:01:19 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/8571002/13001
9 years, 1 month ago (2011-11-18 05:09:58 UTC) #4
commit-bot: I haz the power
Presubmit check for 8571002-13001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-18 05:10:25 UTC) #5
Takashi Toyoshima
I notice that unit test registration is still wrong. I forget to replace instance_->LogTest to ...
9 years, 1 month ago (2011-11-18 11:21:36 UTC) #6
dmichael (off chromium)
http://codereview.chromium.org/8571002/diff/15003/ppapi/tests/test_websocket.cc File ppapi/tests/test_websocket.cc (right): http://codereview.chromium.org/8571002/diff/15003/ppapi/tests/test_websocket.cc#newcode15 ppapi/tests/test_websocket.cc:15: websocket_interface_ = reinterpret_cast<PPB_WebSocket_Dev const*>( static_cast (okay to do in ...
9 years, 1 month ago (2011-11-18 16:22:21 UTC) #7
dmichael (off chromium)
Oh yeah, still LGTM
9 years, 1 month ago (2011-11-18 16:22:46 UTC) #8
Takashi Toyoshima
9 years, 1 month ago (2011-11-19 00:01:19 UTC) #9
http://codereview.chromium.org/8571002/diff/15003/ppapi/tests/test_websocket.cc
File ppapi/tests/test_websocket.cc (right):

http://codereview.chromium.org/8571002/diff/15003/ppapi/tests/test_websocket....
ppapi/tests/test_websocket.cc:15: websocket_interface_ =
reinterpret_cast<PPB_WebSocket_Dev const*>(
Fixed in http://codereview.chromium.org/8558017/.

http://codereview.chromium.org/8571002/diff/15003/ppapi/tests/test_websocket....
ppapi/tests/test_websocket.cc:28: return "Could not create websocket via C
interface";
Also fixed in http://codereview.chromium.org/8558017/.
That change is not finished. But I'm happy if you could look into quickly.
I'm not sure on pepper related stuff, PP_Var's reference count handling, and
object conversion to WebKit specific objects.

I could take review on WebSocket specific code by yutak@.
He wrote WebCore version of WebSocket and one of OWNERS on net/websockets.
He works in the same timezone with me. So, I'd work with him at next Japanese
Monday.

Powered by Google App Engine
This is Rietveld 408576698