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

Issue 701163002: Introduce AlternateProtocolInfo.is_broken. (Closed)

Created:
6 years, 1 month ago by Bence
Modified:
6 years, 1 month ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Introduce AlternateProtocolInfo.is_broken. Introduce bool AlternateProtocolInfo.is_broken and remove ALTERNATE_PROTOCOL_BROKEN from enum AlternateProtocol. This allows AlternateProtocolInfo to keep track of which protocol is broken. Note that the port does not identify the protocol: most notably, SPDY and QUIC can use the same port, but one uses TCP, the other UDP. This change is essential if we want to keep track of multiple AlternateProtocolInfo structs for each server, in preparation for alternate service support. Note that this change stops writing out broken protocols to prefs in HttpServerPropertiesManager::UpdatePrefsOnPrefThread(). This is okay, because HttpServerPropertiesManager::UpdateCacheFromPrefsOnPrefThread() used to refuse to load broken ones already, see IsAlternateProtocolValid(protocol) in line 436. BUG=392575 Committed: https://crrev.com/cbd55d5f181ec117dda702fcc0e8bf5f87b78379 Cr-Commit-Position: refs/heads/master@{#303075}

Patch Set 1 #

Patch Set 2 : Lint. #

Total comments: 11

Patch Set 3 : Re: first round of comments. #

Total comments: 2

Patch Set 4 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -56 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_server_properties.h View 1 2 3 chunks +12 lines, -2 lines 0 comments Download
M net/http/http_server_properties.cc View 4 chunks +3 lines, -7 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 2 3 4 chunks +8 lines, -17 lines 0 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 2 4 chunks +15 lines, -17 lines 0 comments Download
M net/http/http_server_properties_manager.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/http/http_stream_factory.cc View 1 2 2 chunks +3 lines, -7 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
Bence
Ryan: PTAL.
6 years, 1 month ago (2014-11-05 16:10:40 UTC) #2
Ryan Hamilton
Sweet! Thanks for doing this. I think it's much clearer now. https://codereview.chromium.org/701163002/diff/20001/net/http/http_server_properties.h File net/http/http_server_properties.h (right): ...
6 years, 1 month ago (2014-11-05 17:05:20 UTC) #3
Bence
Ryan: PTAL. https://codereview.chromium.org/701163002/diff/20001/net/http/http_server_properties.h File net/http/http_server_properties.h (right): https://codereview.chromium.org/701163002/diff/20001/net/http/http_server_properties.h#newcode88 net/http/http_server_properties.h:88: bool is_broken = false) On 2014/11/05 17:05:19, ...
6 years, 1 month ago (2014-11-06 00:26:00 UTC) #4
Ryan Hamilton
LGTM, modulo one small formatting nit. Thanks for doing this! https://codereview.chromium.org/701163002/diff/40001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/701163002/diff/40001/net/http/http_server_properties_impl.cc#newcode307 ...
6 years, 1 month ago (2014-11-06 01:34:27 UTC) #5
Bence
Thanks. https://codereview.chromium.org/701163002/diff/40001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/701163002/diff/40001/net/http/http_server_properties_impl.cc#newcode307 net/http/http_server_properties_impl.cc:307: return; On 2014/11/06 01:34:27, Ryan Hamilton wrote: > ...
6 years, 1 month ago (2014-11-06 19:00:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/701163002/60001
6 years, 1 month ago (2014-11-06 19:02:32 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-06 19:50:49 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-06 19:51:31 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cbd55d5f181ec117dda702fcc0e8bf5f87b78379
Cr-Commit-Position: refs/heads/master@{#303075}

Powered by Google App Engine
This is Rietveld 408576698