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

Issue 14850012: Add missing status codes to WebSocketError enum. (Closed)

Created:
7 years, 7 months ago by Adam Rice
Modified:
7 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add missing status codes to WebSocketError enum. Add the close status codes that were missing from net::WebSocketError, and also change the style of the enum from ALL_UPPER to kCamelCase. Also add a constructor to WebSocketFrameHeader to minimise boilerplate when it is used, and utility functions IsKnownDataOpCode() and IsKnownControlOpCode() which will be used by WebSocketCommon. Made WebSocketFrameHeader uncopyable and added a Clone() method for more style-guide compliance. BUG=237496 TEST=net_unittests --gtest_filter='WebSocket*' Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198725

Patch Set 1 #

Total comments: 13

Patch Set 2 : Fixes from tyoshino code review #

Total comments: 4

Patch Set 3 : Remove other mux status codes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -74 lines) Patch
M net/websockets/websocket_errors.h View 1 2 2 chunks +34 lines, -6 lines 0 comments Download
M net/websockets/websocket_errors.cc View 1 1 chunk +21 lines, -4 lines 0 comments Download
M net/websockets/websocket_errors_unittest.cc View 1 1 chunk +11 lines, -3 lines 0 comments Download
M net/websockets/websocket_frame.h View 3 chunks +43 lines, -0 lines 0 comments Download
M net/websockets/websocket_frame.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M net/websockets/websocket_frame_parser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/websockets/websocket_frame_parser.cc View 7 chunks +9 lines, -10 lines 0 comments Download
M net/websockets/websocket_frame_parser_unittest.cc View 13 chunks +26 lines, -25 lines 0 comments Download
M net/websockets/websocket_frame_unittest.cc View 1 6 chunks +63 lines, -24 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Adam Rice
7 years, 7 months ago (2013-05-02 13:05:07 UTC) #1
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/14850012/diff/1/net/websockets/websocket_errors.h File net/websockets/websocket_errors.h (right): https://codereview.chromium.org/14850012/diff/1/net/websockets/websocket_errors.h#newcode36 net/websockets/websocket_errors.h:36: // for dropping the control channel. drop reason code ...
7 years, 7 months ago (2013-05-02 13:56:22 UTC) #2
Adam Rice
https://codereview.chromium.org/14850012/diff/1/net/websockets/websocket_errors.h File net/websockets/websocket_errors.h (right): https://codereview.chromium.org/14850012/diff/1/net/websockets/websocket_errors.h#newcode36 net/websockets/websocket_errors.h:36: // for dropping the control channel. On 2013/05/02 13:56:22, ...
7 years, 7 months ago (2013-05-04 09:51:53 UTC) #3
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/14850012/diff/6001/net/websockets/websocket_errors.cc File net/websockets/websocket_errors.cc (left): https://codereview.chromium.org/14850012/diff/6001/net/websockets/websocket_errors.cc#oldcode20 net/websockets/websocket_errors.cc:20: NOTREACHED(); can we keep NOTREACHED()? will this function start ...
7 years, 7 months ago (2013-05-07 05:36:26 UTC) #4
Adam Rice
https://codereview.chromium.org/14850012/diff/6001/net/websockets/websocket_errors.cc File net/websockets/websocket_errors.cc (left): https://codereview.chromium.org/14850012/diff/6001/net/websockets/websocket_errors.cc#oldcode20 net/websockets/websocket_errors.cc:20: NOTREACHED(); On 2013/05/07 05:36:26, tyoshino wrote: > can we ...
7 years, 7 months ago (2013-05-07 08:02:54 UTC) #5
tyoshino (SeeGerritForStatus)
LGTM patch set 3
7 years, 7 months ago (2013-05-07 08:09:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/14850012/14001
7 years, 7 months ago (2013-05-07 08:09:43 UTC) #7
commit-bot: I haz the power
7 years, 7 months ago (2013-05-07 14:59:21 UTC) #8
Message was sent while issue was closed.
Change committed as 198725

Powered by Google App Engine
This is Rietveld 408576698