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

Issue 9956013: Add WebSocketFrameParser. (Closed)

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

Description

Add WebSocketFrameParser. BUG=121052 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136240

Patch Set 1 #

Total comments: 32

Patch Set 2 : Address comments, add tests. #

Total comments: 2

Patch Set 3 : Use capital in hex notations. #

Patch Set 4 : Rebase for try runs. #

Total comments: 16

Patch Set 5 : Address Matt's comments. #

Total comments: 8

Patch Set 6 : More Matt's comments. #

Total comments: 2

Patch Set 7 : Added DISALLOW_COPY_AND_ASSIGN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+924 lines, -0 lines) Patch
M net/net.gyp View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
A net/websockets/websocket_frame.h View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A net/websockets/websocket_frame.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A net/websockets/websocket_frame_parser.h View 1 2 3 4 5 6 1 chunk +85 lines, -0 lines 0 comments Download
A net/websockets/websocket_frame_parser.cc View 1 2 3 4 5 1 chunk +212 lines, -0 lines 0 comments Download
A net/websockets/websocket_frame_parser_unittest.cc View 1 2 3 4 5 1 chunk +518 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Yuta Kitamura
Toyoshima-san, Ishibashi-san, could you take a look at this parser code? I'm aware that unit ...
8 years, 8 months ago (2012-03-30 08:12:24 UTC) #1
bashi
lgtm. Just minor comments. http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc#newcode64 net/websockets/websocket_frame_parser.cc:64: // Reads frame payload. Unmasks ...
8 years, 8 months ago (2012-04-03 09:35:50 UTC) #2
Takashi Toyoshima
https://chromiumcodereview.appspot.com/9956013/diff/1/net/websockets/websocket_frame.h File net/websockets/websocket_frame.h (right): https://chromiumcodereview.appspot.com/9956013/diff/1/net/websockets/websocket_frame.h#newcode34 net/websockets/websocket_frame.h:34: // See <http://tools.ietf.org/html/rfc6455#section-5.2> for details. Usually, we don't use ...
8 years, 8 months ago (2012-04-04 05:46:21 UTC) #3
Yuta Kitamura
https://chromiumcodereview.appspot.com/9956013/diff/1/net/websockets/websocket_frame.h File net/websockets/websocket_frame.h (right): https://chromiumcodereview.appspot.com/9956013/diff/1/net/websockets/websocket_frame.h#newcode34 net/websockets/websocket_frame.h:34: // See <http://tools.ietf.org/html/rfc6455#section-5.2> for details. $ git grep "<http" ...
8 years, 8 months ago (2012-04-09 08:17:57 UTC) #4
Yuta Kitamura
https://chromiumcodereview.appspot.com/9956013/diff/1/net/websockets/websocket_frame.h File net/websockets/websocket_frame.h (right): https://chromiumcodereview.appspot.com/9956013/diff/1/net/websockets/websocket_frame.h#newcode34 net/websockets/websocket_frame.h:34: // See <http://tools.ietf.org/html/rfc6455#section-5.2> for details. Counted the number of ...
8 years, 8 months ago (2012-04-09 12:12:26 UTC) #5
Takashi Toyoshima
http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc#newcode111 net/websockets/websocket_frame_parser.cc:111: void WebSocketFrameParser::DecodeFrameHeader() { sounds good. http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc#newcode117 net/websockets/websocket_frame_parser.cc:117: const char* ...
8 years, 8 months ago (2012-04-09 23:12:16 UTC) #6
Yuta Kitamura
http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc#newcode117 net/websockets/websocket_frame_parser.cc:117: const char* end = &buffer_.front() + buffer_.size(); A big ...
8 years, 8 months ago (2012-04-10 05:34:00 UTC) #7
Takashi Toyoshima
http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc#newcode117 net/websockets/websocket_frame_parser.cc:117: const char* end = &buffer_.front() + buffer_.size(); As I ...
8 years, 8 months ago (2012-04-11 05:37:54 UTC) #8
Yuta Kitamura
http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc#newcode117 net/websockets/websocket_frame_parser.cc:117: const char* end = &buffer_.front() + buffer_.size(); I didn't ...
8 years, 8 months ago (2012-04-11 08:48:53 UTC) #9
Takashi Toyoshima
I'm sorry for vague comment on this. Originally I intended to say this is not ...
8 years, 8 months ago (2012-04-11 13:43:31 UTC) #10
bashi
On 2012/04/11 13:43:31, toyoshim wrote: > Do you have any idea on this? If you ...
8 years, 8 months ago (2012-04-11 14:15:06 UTC) #11
Yuta Kitamura
For any sequence a, the following equations are always true (as long as they are ...
8 years, 8 months ago (2012-04-12 02:19:27 UTC) #12
Takashi Toyoshima
LGTM with some comments. Test cases also looks having good coverage. http://codereview.chromium.org/9956013/diff/1/net/websockets/websocket_frame_parser.cc File net/websockets/websocket_frame_parser.cc (right): ...
8 years, 8 months ago (2012-04-12 06:08:50 UTC) #13
Yuta Kitamura
http://codereview.chromium.org/9956013/diff/10001/net/websockets/websocket_frame_parser_unittest.cc File net/websockets/websocket_frame_parser_unittest.cc (right): http://codereview.chromium.org/9956013/diff/10001/net/websockets/websocket_frame_parser_unittest.cc#newcode40 net/websockets/websocket_frame_parser_unittest.cc:40: }; Fixed; used capital everywhere.
8 years, 7 months ago (2012-05-01 09:49:46 UTC) #14
Yuta Kitamura
Matt and Will: could you take a look at the patch as an OWNER? This ...
8 years, 7 months ago (2012-05-01 10:14:54 UTC) #15
willchan no longer on Chromium
Yes, I'd like to review this, at least at the start. Wow, I was going ...
8 years, 7 months ago (2012-05-01 22:31:28 UTC) #16
Yuta Kitamura
On 2012/05/01 22:31:28, willchan wrote: > Yes, I'd like to review this, at least at ...
8 years, 7 months ago (2012-05-02 00:58:22 UTC) #17
mmenke
http://codereview.chromium.org/9956013/diff/26002/net/websockets/websocket_frame.h File net/websockets/websocket_frame.h (right): http://codereview.chromium.org/9956013/diff/26002/net/websockets/websocket_frame.h#newcode23 net/websockets/websocket_frame.h:23: : public base::RefCounted<WebSocketFrameHeader> { May be worth considering not ...
8 years, 7 months ago (2012-05-02 16:15:41 UTC) #18
Yuta Kitamura
PTAL http://codereview.chromium.org/9956013/diff/26002/net/websockets/websocket_frame.h File net/websockets/websocket_frame.h (right): http://codereview.chromium.org/9956013/diff/26002/net/websockets/websocket_frame.h#newcode23 net/websockets/websocket_frame.h:23: : public base::RefCounted<WebSocketFrameHeader> { After some consideration, I ...
8 years, 7 months ago (2012-05-08 08:21:57 UTC) #19
mmenke
LGTM, though agree with Will on all the copying, but no need to handle it ...
8 years, 7 months ago (2012-05-08 18:35:55 UTC) #20
willchan no longer on Chromium
I'm going to take a look at this later today once I'm out of this ...
8 years, 7 months ago (2012-05-08 18:56:27 UTC) #21
Yuta Kitamura
Will: please take a look once you get enough time to read this. http://codereview.chromium.org/9956013/diff/40002/net/websockets/websocket_frame_parser.cc File ...
8 years, 7 months ago (2012-05-09 07:43:03 UTC) #22
willchan no longer on Chromium
Skimmed the headers and lgtm, thanks for waiting. http://codereview.chromium.org/9956013/diff/49002/net/websockets/websocket_frame_parser.h File net/websockets/websocket_frame_parser.h (right): http://codereview.chromium.org/9956013/diff/49002/net/websockets/websocket_frame_parser.h#newcode78 net/websockets/websocket_frame_parser.h:78: }; ...
8 years, 7 months ago (2012-05-09 08:00:11 UTC) #23
Yuta Kitamura
Thanks! http://codereview.chromium.org/9956013/diff/49002/net/websockets/websocket_frame_parser.h File net/websockets/websocket_frame_parser.h (right): http://codereview.chromium.org/9956013/diff/49002/net/websockets/websocket_frame_parser.h#newcode78 net/websockets/websocket_frame_parser.h:78: }; On 2012/05/09 08:00:11, willchan wrote: > DISALLOW_COPY_AND_ASSIGN ...
8 years, 7 months ago (2012-05-09 08:24:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yutak@chromium.org/9956013/49003
8 years, 7 months ago (2012-05-09 08:24:41 UTC) #25
commit-bot: I haz the power
Try job failure for 9956013-49003 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 7 months ago (2012-05-09 11:45:22 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yutak@chromium.org/9956013/49003
8 years, 7 months ago (2012-05-10 01:01:28 UTC) #27
commit-bot: I haz the power
8 years, 7 months ago (2012-05-10 04:21:50 UTC) #28
Change committed as 136240

Powered by Google App Engine
This is Rietveld 408576698