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

Issue 2900533002: Add an async ReadTrailers method to QuicChromiumClientStream::Handle (Closed)

Created:
3 years, 7 months ago by Ryan Hamilton
Modified:
3 years, 6 months ago
Reviewers:
xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an async ReadTrailers method to QuicChromiumClientStream::Handle This does not change OnClose or OnError and the callback is not yet invoked on errors, but that can happen in the next CL since all upcalls have now been replaced by async methods. BUG=716563 Review-Url: https://codereview.chromium.org/2900533002 Cr-Commit-Position: refs/heads/master@{#475517} Committed: https://chromium.googlesource.com/chromium/src/+/ce2464110221db485c26fd738c097c95c2269c13

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 12

Patch Set 3 : Address comments #

Patch Set 4 : git cl try #

Patch Set 5 : Rebase and fix test #

Total comments: 4

Patch Set 6 : initializes #

Total comments: 6

Patch Set 7 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -103 lines) Patch
M net/quic/chromium/bidirectional_stream_quic_impl.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/quic/chromium/bidirectional_stream_quic_impl.cc View 1 2 3 2 chunks +26 lines, -9 lines 0 comments Download
M net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M net/quic/chromium/quic_chromium_client_stream.h View 1 5 chunks +17 lines, -10 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_stream.cc View 1 2 3 4 5 6 6 chunks +50 lines, -20 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_stream_test.cc View 1 2 3 4 5 6 4 chunks +11 lines, -26 lines 0 comments Download
M net/quic/chromium/quic_http_stream.h View 1 3 chunks +5 lines, -2 lines 0 comments Download
M net/quic/chromium/quic_http_stream.cc View 1 2 3 3 chunks +22 lines, -3 lines 0 comments Download
M net/quic/chromium/quic_http_stream_test.cc View 1 2 3 9 chunks +3 lines, -30 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (12 generated)
Ryan Hamilton
3 years, 7 months ago (2017-05-20 22:16:40 UTC) #2
xunjieli
https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/bidirectional_stream_quic_impl.cc File net/quic/chromium/bidirectional_stream_quic_impl.cc (right): https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/bidirectional_stream_quic_impl.cc#newcode306 net/quic/chromium/bidirectional_stream_quic_impl.cc:306: weak_factory_.GetWeakPtr())); Should we post this task before calling into ...
3 years, 7 months ago (2017-05-26 15:53:06 UTC) #3
Ryan Hamilton
Thanks! https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/bidirectional_stream_quic_impl.cc File net/quic/chromium/bidirectional_stream_quic_impl.cc (right): https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/bidirectional_stream_quic_impl.cc#newcode306 net/quic/chromium/bidirectional_stream_quic_impl.cc:306: weak_factory_.GetWeakPtr())); On 2017/05/26 15:53:05, xunjieli wrote: > Should ...
3 years, 7 months ago (2017-05-26 22:35:50 UTC) #4
xunjieli
LGTM! https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/quic_http_stream.cc File net/quic/chromium/quic_http_stream.cc (right): https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/quic_http_stream.cc#newcode468 net/quic/chromium/quic_http_stream.cc:468: if (!stream_) On 2017/05/26 22:35:50, Ryan Hamilton wrote: ...
3 years, 6 months ago (2017-05-29 14:06:08 UTC) #5
Ryan Hamilton
Thanks! https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/quic_chromium_client_stream_test.cc File net/quic/chromium/quic_chromium_client_stream_test.cc (right): https://codereview.chromium.org/2900533002/diff/20001/net/quic/chromium/quic_chromium_client_stream_test.cc#newcode504 net/quic/chromium/quic_chromium_client_stream_test.cc:504: base::RunLoop().RunUntilIdle(); On 2017/05/26 22:35:50, Ryan Hamilton wrote: > ...
3 years, 6 months ago (2017-05-29 16:27:23 UTC) #6
xunjieli
You should be able to remove "base::RunLoop().RunUntilIdle()" once MarkTrailersConsumed() is moved to DeliverTrailingHeaders(). Let me ...
3 years, 6 months ago (2017-05-29 19:39:02 UTC) #11
Ryan Hamilton
https://codereview.chromium.org/2900533002/diff/100001/net/quic/chromium/quic_chromium_client_stream.cc File net/quic/chromium/quic_chromium_client_stream.cc (right): https://codereview.chromium.org/2900533002/diff/100001/net/quic/chromium/quic_chromium_client_stream.cc#newcode556 net/quic/chromium/quic_chromium_client_stream.cc:556: MarkTrailersConsumed(); On 2017/05/29 19:39:01, xunjieli wrote: > Sorry I ...
3 years, 6 months ago (2017-05-29 20:29:57 UTC) #12
xunjieli
lgtm!
3 years, 6 months ago (2017-05-30 13:19:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2900533002/120001
3 years, 6 months ago (2017-05-30 13:49:19 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 13:52:03 UTC) #22
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ce2464110221db485c26fd738c09...

Powered by Google App Engine
This is Rietveld 408576698