DescriptionIntroduce 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. #
Messages
Total messages: 10 (2 generated)
|