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

Issue 8956008: WebSocket Pepper API: C++ utility class implementation. (Closed)

Created:
9 years ago by Takashi Toyoshima
Modified:
8 years, 9 months ago
CC:
chromium-reviews, piman+watch_chromium.org, ihf+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

WebSocket Pepper API: an utility class implementation. This class privide JS binding like API to Pepper C++ developers. BUG=87310 TEST=ui_tests --gtest_filter='PPAPI*Test.Websocket_Utility*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115093 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124238

Patch Set 1 #

Patch Set 2 : remove C++ bindings related change #

Total comments: 20

Patch Set 3 : fix reviewed points #

Total comments: 1

Patch Set 4 : rebase #

Patch Set 5 : fix flakiness on mac #

Total comments: 2

Patch Set 6 : add comments on server behaviors #

Total comments: 2

Patch Set 7 : fix nit #

Patch Set 8 : rebase #

Patch Set 9 : consumes optional callbacks #

Patch Set 10 : fix completion callback leaks? #

Total comments: 8

Patch Set 11 : rebase #

Total comments: 1

Patch Set 12 : remove helper namespace #

Patch Set 13 : remove meaningless condition check #

Patch Set 14 : apply patch set 13 to trunk in order to resume #

Patch Set 15 : add unit tests #

Total comments: 14

Patch Set 16 : rebase #

Patch Set 17 : rebase (out of dev) #

Patch Set 18 : revise on comments at Patch Set 15 #

Total comments: 10

Patch Set 19 : reflect review comments #

Total comments: 2

Patch Set 20 : rebase #

Patch Set 21 : fix unit test's virtual function names #

Patch Set 22 : ready for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+766 lines, -0 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +20 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/tests/test_websocket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +11 lines, -0 lines 0 comments Download
M ppapi/tests/test_websocket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +460 lines, -0 lines 0 comments Download
A ppapi/utility/websocket/websocket_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +130 lines, -0 lines 0 comments Download
A ppapi/utility/websocket/websocket_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +143 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Takashi Toyoshima
Hi, guys. As we discussed in C++ bindings CL, I prepare helper class for WebSocket. ...
9 years ago (2011-12-15 11:44:22 UTC) #1
brettw
Who did you want to review the test details? I didn't look at that. The ...
9 years ago (2011-12-15 16:54:43 UTC) #2
Takashi Toyoshima
> Who did you want to review the test details? I didn't look at that. ...
9 years ago (2011-12-15 17:05:32 UTC) #3
dmichael (off chromium)
http://codereview.chromium.org/8956008/diff/4001/ppapi/tests/test_websocket.cc File ppapi/tests/test_websocket.cc (right): http://codereview.chromium.org/8956008/diff/4001/ppapi/tests/test_websocket.cc#newcode52 ppapi/tests/test_websocket.cc:52: EventType type, bool was_clean, uint16_t close_code, const pp::Var& var) ...
9 years ago (2011-12-15 17:50:53 UTC) #4
Takashi Toyoshima
Thank you for review. I updated my change. http://codereview.chromium.org/8956008/diff/4001/ppapi/cpp/helper/dev/websocket_api_dev.cc File ppapi/cpp/helper/dev/websocket_api_dev.cc (right): http://codereview.chromium.org/8956008/diff/4001/ppapi/cpp/helper/dev/websocket_api_dev.cc#newcode31 ppapi/cpp/helper/dev/websocket_api_dev.cc:31: uint32_t ...
9 years ago (2011-12-16 07:58:00 UTC) #5
dmichael (off chromium)
http://codereview.chromium.org/8956008/diff/8005/ppapi/tests/test_websocket.cc File ppapi/tests/test_websocket.cc (right): http://codereview.chromium.org/8956008/diff/8005/ppapi/tests/test_websocket.cc#newcode795 ppapi/tests/test_websocket.cc:795: ASSERT_EQ(WebSocketEvent::EVENT_MESSAGE, events[1].event_type); Why do you receive a message here? ...
9 years ago (2011-12-16 16:11:10 UTC) #6
Takashi Toyoshima
http://codereview.chromium.org/8956008/diff/8005/ppapi/tests/test_websocket.cc File ppapi/tests/test_websocket.cc (right): http://codereview.chromium.org/8956008/diff/8005/ppapi/tests/test_websocket.cc#newcode795 ppapi/tests/test_websocket.cc:795: ASSERT_EQ(WebSocketEvent::EVENT_MESSAGE, events[1].event_type); OK, I added comments on server side ...
9 years ago (2011-12-19 05:14:01 UTC) #7
dmichael (off chromium)
lgtm http://codereview.chromium.org/8956008/diff/16001/ppapi/tests/test_websocket.cc File ppapi/tests/test_websocket.cc (right): http://codereview.chromium.org/8956008/diff/16001/ppapi/tests/test_websocket.cc#newcode24 ppapi/tests/test_websocket.cc:24: // These server is provided by pywebsocket server ...
9 years ago (2011-12-19 15:44:52 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/8956008/19001
9 years ago (2011-12-20 04:08:18 UTC) #9
commit-bot: I haz the power
Presubmit check for 8956008-19001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-20 04:08:27 UTC) #10
Takashi Toyoshima
This warning is not correct. PRESUBMIT.py mistakenly detects the same name function in pepper world ...
9 years ago (2011-12-20 04:25:09 UTC) #11
Takashi Toyoshima
Reverts because of memory test failures. Added tests seem to have a memory leak.
9 years ago (2011-12-20 08:59:01 UTC) #12
Takashi Toyoshima
I see what's the problem. CallbackData created by NewOptionalCallback never deleted if the function completed ...
9 years ago (2011-12-20 14:42:01 UTC) #13
dmichael (off chromium)
On 2011/12/20 14:42:01, toyoshim wrote: > I see what's the problem. > CallbackData created by ...
9 years ago (2011-12-20 16:49:24 UTC) #14
brettw
Optional callbacks are tricky which is why the default is an "required" callback. The normal ...
9 years ago (2011-12-20 23:13:56 UTC) #15
dmichael (off chromium)
On Tue, Dec 20, 2011 at 4:13 PM, <brettw@chromium.org> wrote: > Optional callbacks are tricky ...
9 years ago (2011-12-20 23:31:39 UTC) #16
Takashi Toyoshima
Thank you guys. As you guys said, ReceiveMessage must use optional callback for performance optimization. ...
9 years ago (2011-12-21 02:55:08 UTC) #17
brettw
It's not possible to map JS exceptions to synchronous errors. The plugin and renderer are ...
9 years ago (2011-12-21 05:55:58 UTC) #18
Takashi Toyoshima
The errors corresponding to JS exceptions are verified in webkit/plugins/ppapi/ppb_websocket_impl.cc, and will be moved to ...
9 years ago (2011-12-21 06:21:16 UTC) #19
Takashi Toyoshima
Valgrind report leaks of CompletionCallback still exist. I guess internal ReceiveMessage()'s callback cause leaks. I'll ...
9 years ago (2011-12-21 07:16:43 UTC) #20
brettw
Sorry this review is taking so long. Since this is the first such "helper" class ...
9 years ago (2011-12-21 18:31:57 UTC) #21
Takashi Toyoshima
Thank you for your kind review. Long review is no problem to me, because I ...
9 years ago (2011-12-22 07:56:29 UTC) #22
Takashi Toyoshima
BTW, what do you think about changes in ppb_websocket_impl.cc. Outstanding callbacks must be aborted on ...
9 years ago (2011-12-22 08:12:11 UTC) #23
Takashi Toyoshima
Hi, I'd like to resume my helper class review. I apply the last patch set ...
8 years, 11 months ago (2012-01-23 16:19:13 UTC) #24
dmichael (off chromium)
http://codereview.chromium.org/8956008/diff/41001/ppapi/utility/websocket/websocket_api.cc File ppapi/utility/websocket/websocket_api.cc (right): http://codereview.chromium.org/8956008/diff/41001/ppapi/utility/websocket/websocket_api.cc#newcode26 ppapi/utility/websocket/websocket_api.cc:26: ~Implement() {} style nit: virtual http://codereview.chromium.org/8956008/diff/41001/ppapi/utility/websocket/websocket_api.cc#newcode34 ppapi/utility/websocket/websocket_api.cc:34: if (result ...
8 years, 10 months ago (2012-02-01 23:05:18 UTC) #25
Takashi Toyoshima
Thanks. We had out of dev changes recently, so first I upload rebase version as ...
8 years, 10 months ago (2012-02-03 07:58:27 UTC) #26
dmichael (off chromium)
http://codereview.chromium.org/8956008/diff/55002/ppapi/utility/websocket/websocket_api.cc File ppapi/utility/websocket/websocket_api.cc (right): http://codereview.chromium.org/8956008/diff/55002/ppapi/utility/websocket/websocket_api.cc#newcode35 ppapi/utility/websocket/websocket_api.cc:35: // In synchronous cases, sonsumes callback here and invokes ...
8 years, 10 months ago (2012-02-14 17:59:56 UTC) #27
Takashi Toyoshima
http://codereview.chromium.org/8956008/diff/55002/ppapi/utility/websocket/websocket_api.cc File ppapi/utility/websocket/websocket_api.cc (right): http://codereview.chromium.org/8956008/diff/55002/ppapi/utility/websocket/websocket_api.cc#newcode35 ppapi/utility/websocket/websocket_api.cc:35: // In synchronous cases, sonsumes callback here and invokes ...
8 years, 10 months ago (2012-02-23 07:15:09 UTC) #28
dmichael (off chromium)
One more name nitpick... o/w LGTM http://codereview.chromium.org/8956008/diff/66001/ppapi/utility/websocket/websocket_api.h File ppapi/utility/websocket/websocket_api.h (right): http://codereview.chromium.org/8956008/diff/66001/ppapi/utility/websocket/websocket_api.h#newcode107 ppapi/utility/websocket/websocket_api.h:107: virtual void DidWebSocketOpen() ...
8 years, 10 months ago (2012-02-24 19:49:36 UTC) #29
Takashi Toyoshima
http://codereview.chromium.org/8956008/diff/66001/ppapi/utility/websocket/websocket_api.h File ppapi/utility/websocket/websocket_api.h (right): http://codereview.chromium.org/8956008/diff/66001/ppapi/utility/websocket/websocket_api.h#newcode107 ppapi/utility/websocket/websocket_api.h:107: virtual void DidWebSocketOpen() = 0; On 2012/02/24 19:49:36, dmichael ...
8 years, 9 months ago (2012-02-29 18:37:51 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/8956008/75001
8 years, 9 months ago (2012-02-29 18:40:41 UTC) #31
commit-bot: I haz the power
8 years, 9 months ago (2012-02-29 20:22:11 UTC) #32
Change committed as 124238

Powered by Google App Engine
This is Rietveld 408576698