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

Issue 2324183002: Implement QuicHttpStream::GetLoadTimingInfo (Closed)

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

Description

Implement QuicHttpStream::GetLoadTimingInfo This CL implements QuicHttpStream::GetLoadTimingInfo. |dns_start| and |dns_end| are obtained in QuicStreamFactory::Job::DoResolveHost and DoResolveHostComplete. These two values are passed to QuicChromiumClientSession's constructor. |connect_start| and |connect_end| are obtained in QuicChromiumClientSession::CrytoConnect() and when handshake is confirmed. |ssl_start| and |ssl_end| are the same as |connect_start| and |connect_end| because QUIC always does encryption. If a session is reused, the connect_timing fields should all be null. This CL also sets |socket_reused| field of LoadTimingInfo accordingly. BUG=637051 Committed: https://crrev.com/5608fc1bd4f0a80b6d1996f3f4059f2efa0a0777 Committed: https://crrev.com/83ac2f22700c563fef8a670ad4c5c57d34032e03 Committed: https://crrev.com/100937eb53048b5d2df84438ce09c9067d96ccfb Cr-Original-Original-Commit-Position: refs/heads/master@{#417969} Cr-Original-Commit-Position: refs/heads/master@{#418567} Cr-Commit-Position: refs/heads/master@{#418946}

Patch Set 1 : add test #

Total comments: 5

Patch Set 2 : address comments #

Total comments: 6

Patch Set 3 : store bool instead of id #

Patch Set 4 : fix and regression test #

Patch Set 5 : Rebased to r418323 #

Patch Set 6 : fix compile on windows #

Total comments: 2

Patch Set 7 : style fix #

Patch Set 8 : fix flaky TestTwoRequests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -27 lines) Patch
M net/net.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_session.h View 1 2 3 4 4 chunks +5 lines, -2 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_session.cc View 1 2 3 4 5 6 7 8 chunks +27 lines, -8 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_session_test.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_stream.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M net/quic/chromium/quic_chromium_client_stream.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/quic/chromium/quic_http_stream.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M net/quic/chromium/quic_http_stream.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -1 line 0 comments Download
M net/quic/chromium/quic_http_stream_test.cc View 1 2 3 4 8 chunks +123 lines, -7 lines 0 comments Download
M net/quic/chromium/quic_stream_factory.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/chromium/quic_stream_factory.cc View 1 2 3 4 5 6 7 5 chunks +9 lines, -5 lines 0 comments Download
A net/url_request/url_request_quic_unittest.cc View 1 2 3 4 5 6 7 1 chunk +246 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (44 generated)
xunjieli
Hi Ryan and Matt: here's an attempt to implement QuicHttpStream::GetLoadTimingInfo(), which might be totally off... ...
4 years, 3 months ago (2016-09-09 19:47:32 UTC) #5
Ryan Hamilton
https://codereview.chromium.org/2324183002/diff/20001/net/quic/chromium/quic_chromium_client_session.cc File net/quic/chromium/quic_chromium_client_session.cc (right): https://codereview.chromium.org/2324183002/diff/20001/net/quic/chromium/quic_chromium_client_session.cc#newcode621 net/quic/chromium/quic_chromium_client_session.cc:621: connect_timing_.connect_end = base::TimeTicks::Now(); Do you know what the semantics ...
4 years, 3 months ago (2016-09-09 20:02:49 UTC) #6
xunjieli
Thanks for the review! PTAL. https://codereview.chromium.org/2324183002/diff/20001/net/quic/chromium/quic_chromium_client_session.cc File net/quic/chromium/quic_chromium_client_session.cc (right): https://codereview.chromium.org/2324183002/diff/20001/net/quic/chromium/quic_chromium_client_session.cc#newcode621 net/quic/chromium/quic_chromium_client_session.cc:621: connect_timing_.connect_end = base::TimeTicks::Now(); On ...
4 years, 3 months ago (2016-09-09 21:26:59 UTC) #9
Ryan Hamilton
Thanks! I have a couple questions about what LoadTiming expects for: 1) multiplexed transports 2) ...
4 years, 3 months ago (2016-09-09 22:05:39 UTC) #12
xunjieli
> 1) multiplexed transports > 2) 0-RTT connects > Your code seems entirely reasonable, but ...
4 years, 3 months ago (2016-09-12 16:07:23 UTC) #17
Ryan Hamilton
lgtm
4 years, 3 months ago (2016-09-12 16:37:58 UTC) #20
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/2324183002/120001
4 years, 3 months ago (2016-09-12 17:24:36 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 3 months ago (2016-09-12 17:44:43 UTC) #26
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/5608fc1bd4f0a80b6d1996f3f4059f2efa0a0777 Cr-Commit-Position: refs/heads/master@{#417969}
4 years, 3 months ago (2016-09-12 17:46:10 UTC) #28
mef
A revert of this CL (patchset #3 id:120001) has been created in https://codereview.chromium.org/2333863003/ by mef@chromium.org. ...
4 years, 3 months ago (2016-09-12 21:16:11 UTC) #29
xunjieli
Hi Ryan, there was a bug in my earlier patch. Sorry about that! The bug ...
4 years, 3 months ago (2016-09-13 19:08:45 UTC) #35
Ryan Hamilton
lgtm https://codereview.chromium.org/2324183002/diff/180001/net/url_request/url_request_quic_unittest.cc File net/url_request/url_request_quic_unittest.cc (right): https://codereview.chromium.org/2324183002/diff/180001/net/url_request/url_request_quic_unittest.cc#newcode181 net/url_request/url_request_quic_unittest.cc:181: CheckLoadTimingDelegate delegate(false); Thanks for doing this!! We have ...
4 years, 3 months ago (2016-09-13 20:54:08 UTC) #40
xunjieli
Thanks for the review! https://codereview.chromium.org/2324183002/diff/180001/net/url_request/url_request_quic_unittest.cc File net/url_request/url_request_quic_unittest.cc (right): https://codereview.chromium.org/2324183002/diff/180001/net/url_request/url_request_quic_unittest.cc#newcode181 net/url_request/url_request_quic_unittest.cc:181: CheckLoadTimingDelegate delegate(false); On 2016/09/13 20:54:08, ...
4 years, 3 months ago (2016-09-14 15:07:46 UTC) #45
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/2324183002/200001
4 years, 3 months ago (2016-09-14 15:08:13 UTC) #48
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 3 months ago (2016-09-14 15:13:07 UTC) #50
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/83ac2f22700c563fef8a670ad4c5c57d34032e03 Cr-Commit-Position: refs/heads/master@{#418567}
4 years, 3 months ago (2016-09-14 15:16:50 UTC) #52
grt (UTC plus 2)
A revert of this CL (patchset #7 id:200001) has been created in https://codereview.chromium.org/2341033002/ by grt@chromium.org. ...
4 years, 3 months ago (2016-09-15 09:43:05 UTC) #53
xunjieli
Hi Ryan, PTAL at the diff in url_request_quic_unittest.cc between PS#7 and PS#8. This is to ...
4 years, 3 months ago (2016-09-15 15:10:34 UTC) #57
Ryan Hamilton
On 2016/09/15 15:10:34, xunjieli wrote: > Hi Ryan, > > PTAL at the diff in ...
4 years, 3 months ago (2016-09-15 16:58:37 UTC) #60
xunjieli
On 2016/09/15 16:58:37, Ryan Hamilton wrote: > On 2016/09/15 15:10:34, xunjieli wrote: > > Hi ...
4 years, 3 months ago (2016-09-15 17:47:27 UTC) #61
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/2324183002/220001
4 years, 3 months ago (2016-09-15 17:48:42 UTC) #63
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 3 months ago (2016-09-15 20:09:54 UTC) #65
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 20:12:36 UTC) #67
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/100937eb53048b5d2df84438ce09c9067d96ccfb
Cr-Commit-Position: refs/heads/master@{#418946}

Powered by Google App Engine
This is Rietveld 408576698