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

Issue 18792002: WebSocketBasicStream framing logic (Closed)

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

Description

WebSocketBasicStream is the basic implementation of the WebSocket protocol over TCP/IP with no extensions in use. This CL implements the logic to read and write frames from the stream that is used after connection. BUG=257680 TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220573

Patch Set 1 #

Patch Set 2 : Compile fixes. #

Total comments: 2

Patch Set 3 : Remove handshake functionality and add ReadFrames tests #

Patch Set 4 : Add more unit tests and fix bugs. #

Patch Set 5 : Comment fixes, plus fixed an error case. #

Patch Set 6 : Comment fixes. #

Total comments: 15

Patch Set 7 : Fixes from tyoshino code review. #

Total comments: 8

Patch Set 8 : Add includes and rename "data" variable #

Total comments: 44

Patch Set 9 : Refactor ReadFrames() plus other fixes from szym #

Patch Set 10 : Amend comment to http_read_buffer_ to explain the type. #

Total comments: 4

Patch Set 11 : Add comments on purpose of *CloseWithErr tests #

Patch Set 12 : Remove "We" from comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+907 lines, -0 lines) Patch
M net/net.gyp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M net/websockets/README View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A net/websockets/websocket_basic_stream.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +129 lines, -0 lines 0 comments Download
A net/websockets/websocket_basic_stream.cc View 1 2 3 4 5 6 7 8 1 chunk +259 lines, -0 lines 0 comments Download
A net/websockets/websocket_basic_stream_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +513 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/18792002/diff/2001/net/websockets/websocket_basic_stream.cc File net/websockets/websocket_basic_stream.cc (right): https://codereview.chromium.org/18792002/diff/2001/net/websockets/websocket_basic_stream.cc#newcode49 net/websockets/websocket_basic_stream.cc:49: // TODO(ricea): Define all these constants in one central ...
7 years, 4 months ago (2013-08-01 04:47:52 UTC) #1
Adam Rice
PTAL
7 years, 4 months ago (2013-08-22 04:44:32 UTC) #2
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/18792002/diff/24001/net/websockets/websocket_basic_stream.cc File net/websockets/websocket_basic_stream.cc (right): https://codereview.chromium.org/18792002/diff/24001/net/websockets/websocket_basic_stream.cc#newcode23 net/websockets/websocket_basic_stream.cc:23: "implemented in another CL."; \ ok but you can ...
7 years, 4 months ago (2013-08-22 07:56:09 UTC) #3
Adam Rice
https://codereview.chromium.org/18792002/diff/24001/net/websockets/websocket_basic_stream.cc File net/websockets/websocket_basic_stream.cc (right): https://codereview.chromium.org/18792002/diff/24001/net/websockets/websocket_basic_stream.cc#newcode23 net/websockets/websocket_basic_stream.cc:23: "implemented in another CL."; \ On 2013/08/22 07:56:10, tyoshino ...
7 years, 4 months ago (2013-08-22 08:13:04 UTC) #4
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/18792002/diff/24001/net/websockets/websocket_basic_stream.cc File net/websockets/websocket_basic_stream.cc (right): https://codereview.chromium.org/18792002/diff/24001/net/websockets/websocket_basic_stream.cc#newcode142 net/websockets/websocket_basic_stream.cc:142: char* data = total->data(); On 2013/08/22 08:13:04, Adam ...
7 years, 4 months ago (2013-08-22 21:08:43 UTC) #5
Adam Rice
https://codereview.chromium.org/18792002/diff/28001/net/websockets/websocket_basic_stream.cc File net/websockets/websocket_basic_stream.cc (right): https://codereview.chromium.org/18792002/diff/28001/net/websockets/websocket_basic_stream.cc#newcode13 net/websockets/websocket_basic_stream.cc:13: #include "base/bind.h" On 2013/08/22 21:08:43, tyoshino wrote: > add ...
7 years, 4 months ago (2013-08-23 06:05:17 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/18792002/35001
7 years, 4 months ago (2013-08-26 01:48:09 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=22287
7 years, 4 months ago (2013-08-26 01:56:36 UTC) #8
Adam Rice
+szym for net review.
7 years, 4 months ago (2013-08-26 02:03:08 UTC) #9
szym
Haven't read the tests yet. https://codereview.chromium.org/18792002/diff/35001/net/net.gyp File net/net.gyp (right): https://codereview.chromium.org/18792002/diff/35001/net/net.gyp#newcode1858 net/net.gyp:1858: 'websockets/websocket_basic_stream_test.cc', The file name ...
7 years, 3 months ago (2013-08-27 22:54:04 UTC) #10
szym
https://codereview.chromium.org/18792002/diff/35001/net/websockets/websocket_basic_stream.h File net/websockets/websocket_basic_stream.h (right): https://codereview.chromium.org/18792002/diff/35001/net/websockets/websocket_basic_stream.h#newcode121 net/websockets/websocket_basic_stream.h:121: // from being returned to the pool. On 2013/08/27 ...
7 years, 3 months ago (2013-08-27 23:51:30 UTC) #11
Adam Rice
https://codereview.chromium.org/18792002/diff/35001/net/net.gyp File net/net.gyp (right): https://codereview.chromium.org/18792002/diff/35001/net/net.gyp#newcode1858 net/net.gyp:1858: 'websockets/websocket_basic_stream_test.cc', On 2013/08/27 22:54:04, szym wrote: > The file ...
7 years, 3 months ago (2013-08-28 12:01:11 UTC) #12
szym
https://codereview.chromium.org/18792002/diff/35001/net/net.gyp File net/net.gyp (right): https://codereview.chromium.org/18792002/diff/35001/net/net.gyp#newcode1858 net/net.gyp:1858: 'websockets/websocket_basic_stream_test.cc', On 2013/08/28 12:01:11, Adam Rice wrote: > On ...
7 years, 3 months ago (2013-08-28 21:17:54 UTC) #13
Adam Rice
https://codereview.chromium.org/18792002/diff/35001/net/net.gyp File net/net.gyp (right): https://codereview.chromium.org/18792002/diff/35001/net/net.gyp#newcode1858 net/net.gyp:1858: 'websockets/websocket_basic_stream_test.cc', On 2013/08/28 21:17:54, szym wrote: > On 2013/08/28 ...
7 years, 3 months ago (2013-08-29 13:03:23 UTC) #14
szym
lgtm https://codereview.chromium.org/18792002/diff/58001/net/websockets/websocket_basic_stream.h File net/websockets/websocket_basic_stream.h (right): https://codereview.chromium.org/18792002/diff/58001/net/websockets/websocket_basic_stream.h#newcode41 net/websockets/websocket_basic_stream.h:41: virtual int ReadFrames(ScopedVector<WebSocketFrameChunk>* frame_chunks, nit: // WebSocketStream implementation: ...
7 years, 3 months ago (2013-08-29 16:42:01 UTC) #15
Adam Rice
https://codereview.chromium.org/18792002/diff/58001/net/websockets/websocket_basic_stream.h File net/websockets/websocket_basic_stream.h (right): https://codereview.chromium.org/18792002/diff/58001/net/websockets/websocket_basic_stream.h#newcode41 net/websockets/websocket_basic_stream.h:41: virtual int ReadFrames(ScopedVector<WebSocketFrameChunk>* frame_chunks, On 2013/08/29 16:42:01, szym wrote: ...
7 years, 3 months ago (2013-08-30 10:05:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/18792002/68001
7 years, 3 months ago (2013-08-30 10:07:32 UTC) #17
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 13:14:45 UTC) #18
Message was sent while issue was closed.
Change committed as 220573

Powered by Google App Engine
This is Rietveld 408576698