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

Issue 2908243002: Remove QuicChromiumClientStream::Delegate in favor of async methods. (Closed)

Created:
3 years, 6 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

Remove QuicChromiumClientStream::Delegate in favor of async methods. This removes OnClose and OnError from QuicHttpStream and BidirectionalStreamQuicImpl. BUG=716563 Review-Url: https://codereview.chromium.org/2908243002 Cr-Commit-Position: refs/heads/master@{#476842} Committed: https://chromium.googlesource.com/chromium/src/+/1bcfddf2df553b180d0253f26527f94d38710b0e

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : More cleanup #

Patch Set 4 : better mapping #

Patch Set 5 : Async errors #

Total comments: 28

Patch Set 6 : address comments #

Patch Set 7 : OnSendDataComplete #

Patch Set 8 : Bidi IsOpen #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Total comments: 18

Patch Set 11 : Address comments #

Patch Set 12 : Rebase #

Total comments: 1

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Patch Set 15 : No expect_trailers_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -441 lines) Patch
M net/quic/chromium/bidirectional_stream_quic_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -10 lines 0 comments Download
M net/quic/chromium/bidirectional_stream_quic_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 12 chunks +51 lines, -80 lines 0 comments Download
M net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_session.h View 2 chunks +4 lines, -6 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_session.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_session_test.cc View 8 chunks +6 lines, -26 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_stream.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +28 lines, -40 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_stream.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +114 lines, -48 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_stream_test.cc View 25 chunks +28 lines, -103 lines 0 comments Download
M net/quic/chromium/quic_http_stream.h View 1 2 3 4 chunks +5 lines, -8 lines 0 comments Download
M net/quic/chromium/quic_http_stream.cc View 1 2 3 22 chunks +29 lines, -76 lines 0 comments Download
M net/quic/chromium/quic_http_stream_test.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -33 lines 0 comments Download
M net/quic/chromium/quic_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (13 generated)
Ryan Hamilton
3 years, 6 months ago (2017-05-30 19:15:15 UTC) #2
xunjieli
Overall this change makes sense to me. This is my first pass (mostly a couple ...
3 years, 6 months ago (2017-05-31 00:25:22 UTC) #3
Ryan Hamilton
Thanks for the comments! As usual, you've keyed in on some thorny issues. https://codereview.chromium.org/2908243002/diff/80001/net/quic/chromium/bidirectional_stream_quic_impl.cc File ...
3 years, 6 months ago (2017-05-31 02:49:56 UTC) #4
Ryan Hamilton
https://codereview.chromium.org/2908243002/diff/80001/net/quic/chromium/bidirectional_stream_quic_impl.cc File net/quic/chromium/bidirectional_stream_quic_impl.cc (right): https://codereview.chromium.org/2908243002/diff/80001/net/quic/chromium/bidirectional_stream_quic_impl.cc#newcode168 net/quic/chromium/bidirectional_stream_quic_impl.cc:168: weak_factory_.GetWeakPtr(), OK)); On 2017/05/31 02:49:55, Ryan Hamilton wrote: > ...
3 years, 6 months ago (2017-05-31 14:18:26 UTC) #6
xunjieli
I am going to hold off this for a bit. Cronet is having seg faults ...
3 years, 6 months ago (2017-05-31 18:47:48 UTC) #7
xunjieli
Thanks for bearing with me. I think I am ready to sign off after one ...
3 years, 6 months ago (2017-06-01 15:30:33 UTC) #8
Ryan Hamilton
https://codereview.chromium.org/2908243002/diff/200001/net/quic/chromium/bidirectional_stream_quic_impl.cc File net/quic/chromium/bidirectional_stream_quic_impl.cc (right): https://codereview.chromium.org/2908243002/diff/200001/net/quic/chromium/bidirectional_stream_quic_impl.cc#newcode110 net/quic/chromium/bidirectional_stream_quic_impl.cc:110: NotifyError(rv); On 2017/06/01 15:30:33, xunjieli (Slow.until.6-5) wrote: > When ...
3 years, 6 months ago (2017-06-01 23:20:30 UTC) #9
xunjieli
LGTM. One question below about whether |expect_trailers_| is needed. https://codereview.chromium.org/2908243002/diff/200001/net/quic/chromium/bidirectional_stream_quic_impl.cc File net/quic/chromium/bidirectional_stream_quic_impl.cc (right): https://codereview.chromium.org/2908243002/diff/200001/net/quic/chromium/bidirectional_stream_quic_impl.cc#newcode313 net/quic/chromium/bidirectional_stream_quic_impl.cc:313: ...
3 years, 6 months ago (2017-06-02 12:43:41 UTC) #10
Ryan Hamilton
Thanks!!! https://codereview.chromium.org/2908243002/diff/200001/net/quic/chromium/bidirectional_stream_quic_impl.cc File net/quic/chromium/bidirectional_stream_quic_impl.cc (right): https://codereview.chromium.org/2908243002/diff/200001/net/quic/chromium/bidirectional_stream_quic_impl.cc#newcode313 net/quic/chromium/bidirectional_stream_quic_impl.cc:313: if (expect_trailers_) On 2017/06/02 12:43:41, xunjieli (Slow.until.6-5) wrote: ...
3 years, 6 months ago (2017-06-02 14:06:27 UTC) #11
xunjieli
lgtm
3 years, 6 months ago (2017-06-02 14:13:46 UTC) #12
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/2908243002/300001
3 years, 6 months ago (2017-06-03 00:21:18 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-03 00:26:47 UTC) #25
Message was sent while issue was closed.
Committed patchset #15 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/1bcfddf2df553b180d0253f26527...

Powered by Google App Engine
This is Rietveld 408576698