Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Issue 21011003: Implement WebSocketHandshakeStreamCreateHelper (Closed)

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

Description

WebSocketHandshakeStreamCreateHelper is an internal class that stores the data that is needed to create a WebSocketBasicHandshakeStream. This CL also adds a real implementation of WebSocketStream::CreateAndConnectStream(). This CL depends on https://codereview.chromium.org/23500007/ to compile. The tests for this CL are in https://codereview.chromium.org/64133006/ BUG=265329 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237865

Patch Set 1 #

Patch Set 2 : WebSocketStreamFactory no longer implements HttpStreamRequest::Delete #

Patch Set 3 : Add initial implementation of CreateAndConnectStream #

Patch Set 4 : Filling out WebSocketStream::CreateAndConnectStream() #

Patch Set 5 : Compile fixes. #

Patch Set 6 : Add connection success and failure handling. #

Patch Set 7 : Assorted fixes. #

Patch Set 8 : Merge rename of WebSocketHandshakeStreamBase. #

Patch Set 9 : Add the word "handshake" in many more places. #

Patch Set 10 : Rebase. #

Patch Set 11 : Deal with URLRequest API change. #

Patch Set 12 : Remove unusued WebSocketHandshakeStreamFactory members. #

Patch Set 13 : Make changes to ease testing. #

Patch Set 14 : Apply Factory to CreateHelper rename #

Patch Set 15 : Rebase. #

Patch Set 16 : Rebase and header cleanup. #

Total comments: 14

Patch Set 17 : Changes from yhirano review. #

Total comments: 3

Patch Set 18 : Clarify the destruction of StreamRequestImpl #

Total comments: 8

Patch Set 19 : Fixes from tyoshino review. #

Total comments: 8

Patch Set 20 : Fixes from szym review. #

Patch Set 21 : Rebase. #

Patch Set 22 : Fix compile on Windows. #

Patch Set 23 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -6 lines) Patch
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -1 line 0 comments Download
M net/websockets/README View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M net/websockets/websocket_handshake_stream_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +6 lines, -2 lines 0 comments Download
A net/websockets/websocket_handshake_stream_create_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +61 lines, -0 lines 0 comments Download
A net/websockets/websocket_handshake_stream_create_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +43 lines, -0 lines 0 comments Download
M net/websockets/websocket_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +171 lines, -3 lines 0 comments Download
M net/websockets/websocket_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Adam Rice
+yhirano We won't be able to land this CL until after WebSocketBasicStream has landed, but ...
7 years ago (2013-11-25 02:24:47 UTC) #1
yhirano
https://codereview.chromium.org/21011003/diff/538001/net/websockets/websocket_handshake_stream_create_helper.h File net/websockets/websocket_handshake_stream_create_helper.h (right): https://codereview.chromium.org/21011003/diff/538001/net/websockets/websocket_handshake_stream_create_helper.h#newcode11 net/websockets/websocket_handshake_stream_create_helper.h:11: #include "net/websockets/websocket_handshake_stream_base.h" + net_export.h https://codereview.chromium.org/21011003/diff/538001/net/websockets/websocket_handshake_stream_create_helper.h#newcode21 net/websockets/websocket_handshake_stream_create_helper.h:21: class NET_EXPORT_PRIVATE WebSocketHandshakeStreamCreateHelper ...
7 years ago (2013-11-25 08:43:07 UTC) #2
Adam Rice
https://codereview.chromium.org/21011003/diff/538001/net/websockets/websocket_handshake_stream_create_helper.h File net/websockets/websocket_handshake_stream_create_helper.h (right): https://codereview.chromium.org/21011003/diff/538001/net/websockets/websocket_handshake_stream_create_helper.h#newcode11 net/websockets/websocket_handshake_stream_create_helper.h:11: #include "net/websockets/websocket_handshake_stream_base.h" On 2013/11/25 08:43:07, yhirano wrote: > + ...
7 years ago (2013-11-25 10:06:20 UTC) #3
yhirano
https://codereview.chromium.org/21011003/diff/618001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/21011003/diff/618001/net/websockets/websocket_stream.cc#newcode154 net/websockets/websocket_stream.cc:154: WebSocketStreamRequest::~WebSocketStreamRequest() {} I think this class and the derived ...
7 years ago (2013-11-25 11:29:15 UTC) #4
Adam Rice
https://codereview.chromium.org/21011003/diff/618001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/21011003/diff/618001/net/websockets/websocket_stream.cc#newcode154 net/websockets/websocket_stream.cc:154: WebSocketStreamRequest::~WebSocketStreamRequest() {} On 2013/11/25 11:29:15, yhirano wrote: > I ...
7 years ago (2013-11-26 06:49:05 UTC) #5
yhirano
lgtm https://codereview.chromium.org/21011003/diff/618001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/21011003/diff/618001/net/websockets/websocket_stream.cc#newcode154 net/websockets/websocket_stream.cc:154: WebSocketStreamRequest::~WebSocketStreamRequest() {} On 2013/11/26 06:49:05, Adam Rice wrote: ...
7 years ago (2013-11-26 07:08:38 UTC) #6
Adam Rice
+tyoshino for net/websockets/ OWNERS.
7 years ago (2013-11-26 07:14:17 UTC) #7
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/21011003/diff/768001/net/websockets/websocket_handshake_stream_create_helper.cc File net/websockets/websocket_handshake_stream_create_helper.cc (right): https://codereview.chromium.org/21011003/diff/768001/net/websockets/websocket_handshake_stream_create_helper.cc#newcode34 net/websockets/websocket_handshake_stream_create_helper.cc:34: // Create a WebSocketSpdyStream. WebSocketSpdyHandshakeStream ? https://codereview.chromium.org/21011003/diff/768001/net/websockets/websocket_handshake_stream_create_helper.h File ...
7 years ago (2013-11-27 05:29:40 UTC) #8
Adam Rice
+szym for net/ OWNERS. https://codereview.chromium.org/21011003/diff/768001/net/websockets/websocket_handshake_stream_create_helper.cc File net/websockets/websocket_handshake_stream_create_helper.cc (right): https://codereview.chromium.org/21011003/diff/768001/net/websockets/websocket_handshake_stream_create_helper.cc#newcode34 net/websockets/websocket_handshake_stream_create_helper.cc:34: // Create a WebSocketSpdyStream. On ...
7 years ago (2013-11-27 06:39:32 UTC) #9
szym
lgtm https://codereview.chromium.org/21011003/diff/788001/net/websockets/websocket_handshake_stream_create_helper.cc File net/websockets/websocket_handshake_stream_create_helper.cc (right): https://codereview.chromium.org/21011003/diff/788001/net/websockets/websocket_handshake_stream_create_helper.cc#newcode28 net/websockets/websocket_handshake_stream_create_helper.cc:28: new WebSocketBasicHandshakeStream(connection.Pass(), nit: indent of 4 spaces would ...
7 years ago (2013-11-27 07:49:07 UTC) #10
Adam Rice
https://codereview.chromium.org/21011003/diff/788001/net/websockets/websocket_handshake_stream_create_helper.cc File net/websockets/websocket_handshake_stream_create_helper.cc (right): https://codereview.chromium.org/21011003/diff/788001/net/websockets/websocket_handshake_stream_create_helper.cc#newcode28 net/websockets/websocket_handshake_stream_create_helper.cc:28: new WebSocketBasicHandshakeStream(connection.Pass(), On 2013/11/27 07:49:08, szym wrote: > nit: ...
7 years ago (2013-11-27 11:27:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/21011003/828001
7 years ago (2013-11-28 09:45:45 UTC) #12
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=129795
7 years ago (2013-11-28 10:48:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/21011003/858001
7 years ago (2013-11-29 00:47:44 UTC) #14
commit-bot: I haz the power
7 years ago (2013-11-29 02:55:07 UTC) #15
Message was sent while issue was closed.
Change committed as 237865

Powered by Google App Engine
This is Rietveld 408576698