gfe-relnote: Add a VersionSupportsGoogleAltSvcFormat() method to move the version check out of the version manager. No behavior change. Not flag protected.

PiperOrigin-RevId: 276860532
Change-Id: I74f8bd156c7b2d660f12e865f142f923e2ff1936
diff --git a/quic/core/quic_versions.cc b/quic/core/quic_versions.cc
index e565a99..e2996f6 100644
--- a/quic/core/quic_versions.cc
+++ b/quic/core/quic_versions.cc
@@ -407,6 +407,10 @@
   return result;
 }
 
+bool VersionSupportsGoogleAltSvcFormat(QuicTransportVersion transport_version) {
+  return transport_version <= QUIC_VERSION_46;
+}
+
 bool QuicVersionLabelUses4BitConnectionIdLength(
     QuicVersionLabel version_label) {
   // As we deprecate old versions, we still need the ability to send valid
diff --git a/quic/core/quic_versions.h b/quic/core/quic_versions.h
index 8522c67..777d74f 100644
--- a/quic/core/quic_versions.h
+++ b/quic/core/quic_versions.h
@@ -417,6 +417,11 @@
 QUIC_EXPORT_PRIVATE bool VersionHasLengthPrefixedConnectionIds(
     QuicTransportVersion transport_version);
 
+// Returns true if this version supports the old Google-style Alt-Svc
+// advertisement format.
+QUIC_EXPORT_PRIVATE bool VersionSupportsGoogleAltSvcFormat(
+    QuicTransportVersion transport_version);
+
 // Returns whether this version label supports long header 4-bit encoded
 // connection ID lengths as described in draft-ietf-quic-invariants-05 and
 // draft-ietf-quic-transport-21.