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

Issue 23856018: Changes to HttpNetworkTransaction for WebSocket Handshake (Closed)

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

Description

Add a SetWebSocketHandshakeStreamFactory() method to the HttpTransaction base class so that URLRequestHttpJob can pass through the WebSocketHandshakeStreamBase::Factory object. Implement OnWebSocketHandshakeStreamReady(). BUG=315027 TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235016

Patch Set 1 #

Patch Set 2 : Remove WebSocketBasicStream::*Handshake*() #

Patch Set 3 : Fix WebSocketChannelTest #

Patch Set 4 : Fix HttpNetworkTransactionTest tests. #

Patch Set 5 : Rebase. #

Patch Set 6 : Some changes have been split off into 26872005 #

Patch Set 7 : Merge WebSocketHandshakeStreamBase rename. #

Patch Set 8 : Don't ignore 1xx codes for WebSockets #

Patch Set 9 : Add tests by yhirano #

Total comments: 2

Patch Set 10 : Standardised condition for WebSocket handshake. #

Total comments: 6

Patch Set 11 : Fixes from szym review. #

Patch Set 12 : Merge patch 58953004: Rename WebSocketHandshakeStreamBase::Factory #

Patch Set 13 : Typo fix. #

Patch Set 14 : Minor comment fix. #

Patch Set 15 : Rename SetWebSocketHandshakeCreateHelper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -56 lines) Patch
M net/http/http_cache_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +45 lines, -0 lines 0 comments Download
M net/http/http_network_session_peer.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -4 lines 0 comments Download
M net/http/http_network_session_peer.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -7 lines 0 comments Download
M net/http/http_network_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +11 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +37 lines, -11 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +99 lines, -18 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +21 lines, -16 lines 0 comments Download
M net/http/http_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_transaction_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -0 lines 0 comments Download
M net/http/http_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Adam Rice
7 years, 1 month ago (2013-11-05 10:59:23 UTC) #1
yhirano
Is the following description correct? Implement OnWebSocketStreamReady(). https://codereview.chromium.org/23856018/diff/156001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/23856018/diff/156001/net/http/http_network_transaction.cc#newcode1013 net/http/http_network_transaction.cc:1013: !websocket_handshake_stream_base_factory_) { ...
7 years, 1 month ago (2013-11-06 05:00:04 UTC) #2
Adam Rice
I updated the description. https://codereview.chromium.org/23856018/diff/156001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/23856018/diff/156001/net/http/http_network_transaction.cc#newcode1013 net/http/http_network_transaction.cc:1013: !websocket_handshake_stream_base_factory_) { On 2013/11/06 05:00:05, ...
7 years, 1 month ago (2013-11-07 01:45:22 UTC) #3
yhirano
lgtm
7 years, 1 month ago (2013-11-07 04:12:32 UTC) #4
tyoshino (SeeGerritForStatus)
lgtm
7 years, 1 month ago (2013-11-07 07:41:44 UTC) #5
Adam Rice
+szym for OWNERS review.
7 years, 1 month ago (2013-11-07 07:45:03 UTC) #6
szym
https://codereview.chromium.org/23856018/diff/216001/net/http/http_network_session_peer.h File net/http/http_network_session_peer.h (right): https://codereview.chromium.org/23856018/diff/216001/net/http/http_network_session_peer.h#newcode29 net/http/http_network_session_peer.h:29: void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); Both of these (and SetClientSocketPoolManager) should ...
7 years, 1 month ago (2013-11-08 20:45:51 UTC) #7
Adam Rice
https://codereview.chromium.org/23856018/diff/216001/net/http/http_network_session_peer.h File net/http/http_network_session_peer.h (right): https://codereview.chromium.org/23856018/diff/216001/net/http/http_network_session_peer.h#newcode29 net/http/http_network_session_peer.h:29: void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); On 2013/11/08 20:45:51, szym wrote: > ...
7 years, 1 month ago (2013-11-11 02:06:22 UTC) #8
szym
lgtm apologies for the delay
7 years, 1 month ago (2013-11-13 22:33:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/23856018/506001
7 years, 1 month ago (2013-11-13 23:12:06 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-14 02:14:45 UTC) #11
Message was sent while issue was closed.
Change committed as 235016

Powered by Google App Engine
This is Rietveld 408576698