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

Issue 1272283003: Add a new SpdyStream::Delegate method to handle trailers (Closed)

Created:
5 years, 4 months ago by xunjieli
Modified:
5 years, 4 months ago
Reviewers:
Bence, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new SpdyStream::Delegate method to handle trailers This CL adds a new SpdyStream::Delegate method to surface trailers to Delegate's implementations. Before this CL, receiving trailers will trigger a spdy protocol error. However, SpdyHttpStream does not implement this delegate method as of this CL, so trailers are ignored. BUG=481033 Committed: https://crrev.com/294da720bb313d48fdba567f192850c9b36b0650 Cr-Commit-Position: refs/heads/master@{#342859}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Address comments #

Total comments: 4

Patch Set 3 : Address Bence's comments and rebased #

Total comments: 1

Patch Set 4 : fixed tests #

Total comments: 15

Patch Set 5 : Address Ryan's comments #

Total comments: 8

Patch Set 6 : Address comments #

Patch Set 7 : Add NOTREACHED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -16 lines) Patch
M net/spdy/spdy_http_stream.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 5 2 chunks +7 lines, -6 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_stream.h View 1 2 3 4 5 3 chunks +12 lines, -4 lines 0 comments Download
M net/spdy/spdy_stream.cc View 1 2 3 4 3 chunks +22 lines, -6 lines 0 comments Download
M net/spdy/spdy_stream_test_util.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_stream_test_util.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M net/spdy/spdy_stream_unittest.cc View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
M net/spdy/spdy_test_util_common.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
Bence
I think this in the right direction. Thank you. https://codereview.chromium.org/1272283003/diff/20001/net/spdy/spdy_stream.cc File net/spdy/spdy_stream.cc (right): https://codereview.chromium.org/1272283003/diff/20001/net/spdy/spdy_stream.cc#newcode454 net/spdy/spdy_stream.cc:454: ...
5 years, 4 months ago (2015-08-06 15:02:41 UTC) #3
xunjieli
Thanks for the review! PTAL. https://codereview.chromium.org/1272283003/diff/20001/net/spdy/spdy_stream.cc File net/spdy/spdy_stream.cc (right): https://codereview.chromium.org/1272283003/diff/20001/net/spdy/spdy_stream.cc#newcode454 net/spdy/spdy_stream.cc:454: } else if (type_ ...
5 years, 4 months ago (2015-08-06 16:10:13 UTC) #4
Bence
LGTM. Note that you'll need l-g-t-m from an owner. https://codereview.chromium.org/1272283003/diff/40001/net/spdy/spdy_stream.h File net/spdy/spdy_stream.h (right): https://codereview.chromium.org/1272283003/diff/40001/net/spdy/spdy_stream.h#newcode153 net/spdy/spdy_stream.h:153: ...
5 years, 4 months ago (2015-08-06 18:26:25 UTC) #5
xunjieli
+rch Ryan, could you take a look? Thanks for the review! I ran all the ...
5 years, 4 months ago (2015-08-06 21:02:00 UTC) #7
xunjieli
Pinging rch@.
5 years, 4 months ago (2015-08-10 14:56:24 UTC) #8
Ryan Hamilton
Thanks for doing this! Sorry for the delay. We had a CAM+MTV quic team meeting ...
5 years, 4 months ago (2015-08-10 17:23:25 UTC) #9
xunjieli
Thanks for the review! I wasn't sure if you saw the email coz the original ...
5 years, 4 months ago (2015-08-10 20:31:07 UTC) #10
Ryan Hamilton
Looks great. Just a few minor comments. https://codereview.chromium.org/1272283003/diff/80001/net/spdy/spdy_network_transaction_unittest.cc File net/spdy/spdy_network_transaction_unittest.cc (right): https://codereview.chromium.org/1272283003/diff/80001/net/spdy/spdy_network_transaction_unittest.cc#newcode5470 net/spdy/spdy_network_transaction_unittest.cc:5470: TEST_P(SpdyNetworkTransactionTest, SynReplyWithLateHeaders) ...
5 years, 4 months ago (2015-08-10 22:37:39 UTC) #11
xunjieli
Thanks for the reviews! PTAL. https://codereview.chromium.org/1272283003/diff/80001/net/spdy/spdy_network_transaction_unittest.cc File net/spdy/spdy_network_transaction_unittest.cc (right): https://codereview.chromium.org/1272283003/diff/80001/net/spdy/spdy_network_transaction_unittest.cc#newcode5470 net/spdy/spdy_network_transaction_unittest.cc:5470: TEST_P(SpdyNetworkTransactionTest, SynReplyWithLateHeaders) { On ...
5 years, 4 months ago (2015-08-11 15:07:14 UTC) #12
Ryan Hamilton
lgtm thanks for doing this! https://codereview.chromium.org/1272283003/diff/100001/net/spdy/spdy_proxy_client_socket.cc File net/spdy/spdy_proxy_client_socket.cc (right): https://codereview.chromium.org/1272283003/diff/100001/net/spdy/spdy_proxy_client_socket.cc#newcode499 net/spdy/spdy_proxy_client_socket.cc:499: void SpdyProxyClientSocket::OnTrailers(const SpdyHeaderBlock& trailers) ...
5 years, 4 months ago (2015-08-11 16:30:10 UTC) #13
xunjieli
Thanks for the feedback! https://codereview.chromium.org/1272283003/diff/100001/net/spdy/spdy_proxy_client_socket.cc File net/spdy/spdy_proxy_client_socket.cc (right): https://codereview.chromium.org/1272283003/diff/100001/net/spdy/spdy_proxy_client_socket.cc#newcode499 net/spdy/spdy_proxy_client_socket.cc:499: void SpdyProxyClientSocket::OnTrailers(const SpdyHeaderBlock& trailers) {} ...
5 years, 4 months ago (2015-08-11 17:58:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272283003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272283003/140001
5 years, 4 months ago (2015-08-11 17:59:56 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 4 months ago (2015-08-11 19:15:11 UTC) #18
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 19:15:55 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/294da720bb313d48fdba567f192850c9b36b0650
Cr-Commit-Position: refs/heads/master@{#342859}

Powered by Google App Engine
This is Rietveld 408576698