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

Issue 2901093004: Add and persist a new field in AlternativeServiceInfo to list QUIC verisons advertised (Closed)

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

Description

Add a new field in AlternativeServiceInfo to list QUIC verisons that are advertised by the server and supported by Chrome. The list will also be persisted to disk. BUG=689762 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2901093004 Cr-Commit-Position: refs/heads/master@{#482651} Committed: https://chromium.googlesource.com/chromium/src/+/e537a0070404ceaae5d8ad6b7659a7cd24469996

Patch Set 1 #

Patch Set 2 : Use default supported versions to fill in AlternativeServices #

Patch Set 3 : Append default supported versions when load missing versions from disk #

Patch Set 4 : self review #

Total comments: 9

Patch Set 5 : address some comments #

Patch Set 6 : rebase #

Patch Set 7 : revert changes to make this CL simple #

Patch Set 8 : self review #

Total comments: 5

Patch Set 9 : Add Get/Set persisting logic #

Patch Set 10 : update to disk when advertised versions changes #

Patch Set 11 : Add unittests in quic_network_transaction_unittest for parsing Alt Svc header #

Patch Set 12 : Change advertised_versions to private in AlternativeServiceInfo #

Patch Set 13 : Self review #

Total comments: 2

Patch Set 14 : rebase #

Patch Set 15 : fix cronet and grpc compile #

Patch Set 16 : fix compile in components #

Total comments: 36

Patch Set 17 : address comments from rch@ and bnc@ #

Patch Set 18 : change the versions set in cronet & grpc #

Patch Set 19 : rebase with master #

Patch Set 20 : manually fix rebase issues #

Total comments: 4

Patch Set 21 : rebase with master after AlternativeServiceInfo is changed to a class #

Patch Set 22 : Split SetAlternativeService to two separate methods, one for Quic, one for Spdy #

Patch Set 23 : fix cronet/grpc #

Total comments: 27

Patch Set 24 : address bnc's comments #

Patch Set 25 : Rebase onto origin/master #

Patch Set 26 : rebase after crbug.com/736063 fixed #

Patch Set 27 : Add version filtering in SpdySession #

Patch Set 28 : rebase #

Patch Set 29 : fix Canonical test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+823 lines, -204 lines) Patch
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +4 lines, -2 lines 0 comments Download
M components/cronet/ios/cronet_environment.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +5 lines, -2 lines 0 comments Download
M components/grpc_support/test/get_stream_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -2 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 17 chunks +36 lines, -32 lines 0 comments Download
M net/http/http_server_properties.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +49 lines, -11 lines 0 comments Download
M net/http/http_server_properties.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +31 lines, -8 lines 0 comments Download
M net/http/http_server_properties_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +8 lines, -3 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +45 lines, -6 lines 0 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 16 chunks +67 lines, -33 lines 0 comments Download
M net/http/http_server_properties_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +10 lines, -3 lines 0 comments Download
M net/http/http_server_properties_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 5 chunks +60 lines, -12 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 12 chunks +265 lines, -23 lines 0 comments Download
M net/http/http_stream_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +13 lines, -7 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +69 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +17 lines, -21 lines 0 comments Download
M net/quic/chromium/quic_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 17 chunks +122 lines, -28 lines 0 comments Download
M net/quic/chromium/quic_stream_factory_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +4 lines, -2 lines 0 comments Download
M net/spdy/chromium/spdy_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 84 (56 generated)
Zhongyi Shi
3 years, 7 months ago (2017-05-24 17:29:19 UTC) #2
Ryan Hamilton
Sweet. One question. It looks like the new field is currently being populated in some ...
3 years, 7 months ago (2017-05-24 19:52:54 UTC) #3
Zhongyi Shi
Ryan: thanks for helping the review. This CL is mainly for review purpose and will ...
3 years, 7 months ago (2017-05-24 22:44:55 UTC) #4
Ryan Hamilton
https://codereview.chromium.org/2901093004/diff/60001/net/http/http_server_properties.h File net/http/http_server_properties.h (right): https://codereview.chromium.org/2901093004/diff/60001/net/http/http_server_properties.h#newcode124 net/http/http_server_properties.h:124: base::Time expiration); On 2017/05/24 22:44:54, Zhongyi Shi wrote: > ...
3 years, 7 months ago (2017-05-24 23:12:12 UTC) #5
Zhongyi Shi
Ryan: Thanks for helping the review. As discussed offline, I have simplify this CL to ...
3 years, 7 months ago (2017-05-25 19:48:48 UTC) #11
Ryan Hamilton
https://codereview.chromium.org/2901093004/diff/160001/net/http/http_server_properties.cc File net/http/http_server_properties.cc (right): https://codereview.chromium.org/2901093004/diff/160001/net/http/http_server_properties.cc#newcode91 net/http/http_server_properties.cc:91: advertised_versions = HttpNetworkSession::Params().quic_supported_versions; I don't think this is the ...
3 years, 7 months ago (2017-05-25 22:01:46 UTC) #14
Zhongyi Shi
I have added Get/Set logic to persist advertised versions into disk. Unit tests are also ...
3 years, 6 months ago (2017-06-06 22:04:52 UTC) #17
Ryan Hamilton
Looks promising! https://codereview.chromium.org/2901093004/diff/360001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2901093004/diff/360001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode768 components/cronet/android/cronet_url_request_context_adapter.cc:768: QuicVersionVector()); Would QuicSupportedVersions() be a better choice ...
3 years, 6 months ago (2017-06-07 20:52:24 UTC) #35
Bence
Minor drive-by comments. https://codereview.chromium.org/2901093004/diff/360001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/2901093004/diff/360001/net/http/http_server_properties_manager.cc#newcode1118 net/http/http_server_properties_manager.cc:1118: std::unique_ptr<base::ListValue> advertised_versions_list( Optional: According to https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/evQtLFgfmyM/YzUV12AZAwAJ ...
3 years, 6 months ago (2017-06-08 17:44:52 UTC) #37
Zhongyi Shi
Thanks for helping the review. I have addressed most of the comments, PTAL! https://codereview.chromium.org/2901093004/diff/360001/components/cronet/android/cronet_url_request_context_adapter.cc File ...
3 years, 6 months ago (2017-06-08 23:11:17 UTC) #40
Zhongyi Shi
If you want to diff with a previous reviewed patch, patch 18 is good to ...
3 years, 6 months ago (2017-06-08 23:16:23 UTC) #42
Ryan Hamilton
I've got more reviewing to do, but one point before I head off to the ...
3 years, 6 months ago (2017-06-08 23:53:16 UTC) #47
xunjieli
Is there a better alternative to adding a QuicVersionVector to SetAlternativeService() and AlternativeServiceInfo? AlternativeService can ...
3 years, 6 months ago (2017-06-09 16:41:56 UTC) #48
Zhongyi Shi
Helen and Bence: PTAL, thanks! As discussed offline with xunjieli@, I hided the constructor, and ...
3 years, 6 months ago (2017-06-16 00:24:05 UTC) #49
Bence
https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode771 components/cronet/android/cronet_url_request_context_adapter.cc:771: context_->http_server_properties()->SetQuicAlternativeService( I believe this should be called with an ...
3 years, 6 months ago (2017-06-16 14:43:40 UTC) #50
xunjieli
cronet/ lgtm. https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode765 components/cronet/android/cronet_url_request_context_adapter.cc:765: if (params) { |params| should be always ...
3 years, 6 months ago (2017-06-16 14:43:56 UTC) #51
Zhongyi Shi
xunjieli@: thanks for the review. bnc@: PTAL! Let me know if I could help answer ...
3 years, 6 months ago (2017-06-20 23:23:37 UTC) #52
Bence
Just a few more questions, sorry for bringing up so many edge cases. https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc File ...
3 years, 6 months ago (2017-06-21 12:39:25 UTC) #53
Bence
LGTM, after some offline discussion. Thank you for answering all my questions in detail!
3 years, 6 months ago (2017-06-21 19:15:53 UTC) #54
Zhongyi Shi
bnc@: thanks for all your questions and a thorough review! rch@: PTAL, thanks! https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc File ...
3 years, 6 months ago (2017-06-21 21:01:33 UTC) #55
Zhongyi Shi
mef@: PTAL at components/grpc_support/*, thanks!
3 years, 6 months ago (2017-06-21 23:42:37 UTC) #57
mef
On 2017/06/21 23:42:37, Zhongyi Shi wrote: > mef@: PTAL at components/grpc_support/*, thanks! components/grpc_support/* lgtm
3 years, 6 months ago (2017-06-22 17:59:55 UTC) #58
Zhongyi Shi
Thanks all for helping the review. Landing now.
3 years, 6 months ago (2017-06-22 18:02:59 UTC) #60
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/2901093004/560001
3 years, 6 months ago (2017-06-22 18:03:21 UTC) #63
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/237555)
3 years, 6 months ago (2017-06-22 18:14:06 UTC) #65
Zhongyi Shi
Added QUIC version filtering in SpdySession::OnAltSvc after https://crbug.com/736063 is fixed. https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc File components/cronet/android/cronet_url_request_context_adapter.cc (right): https://codereview.chromium.org/2901093004/diff/520001/components/cronet/android/cronet_url_request_context_adapter.cc#newcode771 ...
3 years, 5 months ago (2017-06-26 22:23:24 UTC) #68
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/2901093004/640001
3 years, 5 months ago (2017-06-27 16:44:33 UTC) #81
commit-bot: I haz the power
3 years, 5 months ago (2017-06-27 16:48:44 UTC) #84
Message was sent while issue was closed.
Committed patchset #29 (id:640001) as
https://chromium.googlesource.com/chromium/src/+/e537a0070404ceaae5d8ad6b7659...

Powered by Google App Engine
This is Rietveld 408576698