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

Issue 10824081: Add WebSocketError to indicate decoding failure reason (Closed)

Created:
8 years, 4 months ago by Takashi Toyoshima
Modified:
8 years, 4 months ago
Reviewers:
mmenke
CC:
Yuta Kitamura, chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add WebSocketError to indicate decoding failure reason BUG=none TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150095

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 13

Patch Set 3 : introduce websocket_errors.h #

Patch Set 4 : remove failed_ #

Patch Set 5 : ready for the next review #

Total comments: 5

Patch Set 6 : fixed #

Patch Set 7 : move all tests into net::(anonymous) namespace #

Total comments: 2

Patch Set 8 : fixed, ready for commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -49 lines) Patch
A net/websockets/websocket_errors.h View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A net/websockets/websocket_errors.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M net/websockets/websocket_frame_parser.h View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M net/websockets/websocket_frame_parser.cc View 1 2 3 4 5 6 chunks +8 lines, -11 lines 0 comments Download
M net/websockets/websocket_frame_parser_unittest.cc View 1 2 3 4 5 6 7 15 chunks +40 lines, -34 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Takashi Toyoshima
Hi Matt, This is my first idea on error code handling. As I replied in ...
8 years, 4 months ago (2012-08-01 14:16:21 UTC) #1
mmenke
I'm happy with either approach. I'm not sure how much we'd get out of extending ...
8 years, 4 months ago (2012-08-01 14:44:58 UTC) #2
Takashi Toyoshima
Thanks, Matt. I also add a function net::WebSocketErrorToNetError(). As you said, we will need it ...
8 years, 4 months ago (2012-08-02 08:11:34 UTC) #3
mmenke
https://chromiumcodereview.appspot.com/10824081/diff/7007/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): https://chromiumcodereview.appspot.com/10824081/diff/7007/net/websockets/websocket_frame_parser.cc#newcode140 net/websockets/websocket_frame_parser.cc:140: websocket_error_ = WEB_SOCKET_ERR_PROTOCOL_ERROR; nit: Need brackets here, since the ...
8 years, 4 months ago (2012-08-02 14:08:21 UTC) #4
Takashi Toyoshima
Thank you, and sorry for my misunderstanding on your namespace comment. https://chromiumcodereview.appspot.com/10824081/diff/7007/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): ...
8 years, 4 months ago (2012-08-03 05:53:14 UTC) #5
mmenke
Nothing to apologize for. https://chromiumcodereview.appspot.com/10824081/diff/7007/net/websockets/websocket_frame_parser_unittest.cc File net/websockets/websocket_frame_parser_unittest.cc (right): https://chromiumcodereview.appspot.com/10824081/diff/7007/net/websockets/websocket_frame_parser_unittest.cc#newcode54 net/websockets/websocket_frame_parser_unittest.cc:54: const int kNumFrameHeaderTests = arraysize(kFrameHeaderTests); ...
8 years, 4 months ago (2012-08-03 14:22:01 UTC) #6
Takashi Toyoshima
Matt, thank you for good advice. I moved all tests into net::(anonymous) namespace. Could you ...
8 years, 4 months ago (2012-08-06 09:15:08 UTC) #7
mmenke
LGTM. https://chromiumcodereview.appspot.com/10824081/diff/10008/net/websockets/websocket_frame_parser_unittest.cc File net/websockets/websocket_frame_parser_unittest.cc (right): https://chromiumcodereview.appspot.com/10824081/diff/10008/net/websockets/websocket_frame_parser_unittest.cc#newcode34 net/websockets/websocket_frame_parser_unittest.cc:34: bool failed; Don't think we need this any ...
8 years, 4 months ago (2012-08-06 14:08:31 UTC) #8
Takashi Toyoshima
Ah, right. Thank you for catching this. I'll submit this change after removing this. https://chromiumcodereview.appspot.com/10824081/diff/10008/net/websockets/websocket_frame_parser_unittest.cc ...
8 years, 4 months ago (2012-08-06 14:19:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/10824081/13002
8 years, 4 months ago (2012-08-06 14:19:59 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-06 14:36:50 UTC) #11
Try job failure for 10824081-13002 (retry) on win_rel for step "compile"
(clobber build).
It's a second try, previously, step "compile" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698