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

Issue 15701009: [SPDY] Add a SpdyStreamType enum and use it for SpdyStream (Closed)

Created:
7 years, 7 months ago by akalin
Modified:
7 years, 7 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

[SPDY] Add a SpdyStreamType enum and use it for SpdyStream Use SpdyStreamType to enforce stream and stream delegate semantics instead of trying to infer it from various parameters and return values. Remove now-redundant return value of SpdyStream::Delegate::OnSendRequestHeadersComplete(). Comment expected semantics of SpdyStream::Delegate member functions and related SpdyStream member functions. Enforce some restrictions on push streams. Namely, set send_status_ to NO_MORE_DATA_TO_SEND immediately for them, and make sure its entry point is SpdyStream::OnResponseReceived(). Also clarify how push streams interact with the stream histograms. BUG=243643 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202401

Patch Set 1 #

Total comments: 1

Patch Set 2 : CHECK -> DCHECK #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -250 lines) Patch
M net/http/http_proxy_client_socket_pool.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_stream.h View 3 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 8 chunks +28 lines, -20 lines 1 comment Download
M net/spdy/spdy_proxy_client_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 chunk +1 line, -5 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/spdy/spdy_session.h View 3 chunks +5 lines, -1 line 0 comments Download
M net/spdy/spdy_session.cc View 5 chunks +8 lines, -4 lines 0 comments Download
M net/spdy/spdy_session_spdy2_unittest.cc View 28 chunks +78 lines, -45 lines 0 comments Download
M net/spdy/spdy_session_spdy3_unittest.cc View 40 chunks +111 lines, -66 lines 0 comments Download
M net/spdy/spdy_stream.h View 11 chunks +47 lines, -32 lines 2 comments Download
M net/spdy/spdy_stream.cc View 1 17 chunks +69 lines, -37 lines 1 comment Download
M net/spdy/spdy_stream_spdy2_unittest.cc View 5 chunks +10 lines, -6 lines 0 comments Download
M net/spdy/spdy_stream_spdy3_unittest.cc View 8 chunks +16 lines, -9 lines 0 comments Download
M net/spdy/spdy_stream_test_util.h View 3 chunks +2 lines, -3 lines 0 comments Download
M net/spdy/spdy_stream_test_util.cc View 3 chunks +2 lines, -10 lines 0 comments Download
M net/spdy/spdy_test_util_common.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/spdy/spdy_websocket_stream.h View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_websocket_stream.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M net/spdy/spdy_write_queue_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
akalin
+rch for review https://codereview.chromium.org/15701009/diff/1/net/spdy/spdy_stream.cc File net/spdy/spdy_stream.cc (left): https://codereview.chromium.org/15701009/diff/1/net/spdy/spdy_stream.cc#oldcode723 net/spdy/spdy_stream.cc:723: if (!session_->NeedsCredentials() || pushed_ || !url.SchemeIs("https")) ...
7 years, 7 months ago (2013-05-25 07:40:43 UTC) #1
Ryan Hamilton
One question. LGTM otherwise. https://codereview.chromium.org/15701009/diff/1022/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/15701009/diff/1022/net/spdy/spdy_http_stream.cc#newcode69 net/spdy/spdy_http_stream.cc:69: int error = spdy_session_->GetPushStream(request_info_->url, &stream_, ...
7 years, 7 months ago (2013-05-26 15:33:49 UTC) #2
akalin
Committing soon https://codereview.chromium.org/15701009/diff/1022/net/spdy/spdy_stream.h File net/spdy/spdy_stream.h (right): https://codereview.chromium.org/15701009/diff/1022/net/spdy/spdy_stream.h#newcode318 net/spdy/spdy_stream.h:318: // bidirectional streams; for request/response streams, it ...
7 years, 7 months ago (2013-05-27 08:13:35 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/15701009/1022
7 years, 7 months ago (2013-05-27 08:13:59 UTC) #4
commit-bot: I haz the power
7 years, 7 months ago (2013-05-27 12:53:10 UTC) #5
Message was sent while issue was closed.
Change committed as 202401

Powered by Google App Engine
This is Rietveld 408576698