Clean up QuicTransportVersion use

This CL does not change any behavior, it simply replaces some uses of QuicTransportVersion with ParsedQuicVersion. This is another step towards removing access to QuicTransportVersion in favor of ParsedQuicVersion.

PiperOrigin-RevId: 345274837
Change-Id: I2edf3620e966d6ffac3a78441850dbe7570054ab
diff --git a/quic/core/quic_packet_creator.cc b/quic/core/quic_packet_creator.cc
index e1e3478..a9d95b3 100644
--- a/quic/core/quic_packet_creator.cc
+++ b/quic/core/quic_packet_creator.cc
@@ -221,7 +221,7 @@
 // maximum packet size if we stop sending version before it is serialized.
 void QuicPacketCreator::StopSendingVersion() {
   DCHECK(send_version_in_packet_);
-  DCHECK(!VersionHasIetfInvariantHeader(framer_->transport_version()));
+  DCHECK(!version().HasIetfInvariantHeader());
   send_version_in_packet_ = false;
   if (packet_size_ > 0) {
     DCHECK_LT(kQuicVersionSize, packet_size_);
@@ -1785,7 +1785,7 @@
 }
 
 bool QuicPacketCreator::IncludeVersionInHeader() const {
-  if (VersionHasIetfInvariantHeader(framer_->transport_version())) {
+  if (version().HasIetfInvariantHeader()) {
     return packet_.encryption_level < ENCRYPTION_FORWARD_SECURE;
   }
   return send_version_in_packet_;
@@ -1908,7 +1908,7 @@
 }
 
 bool QuicPacketCreator::HasIetfLongHeader() const {
-  return VersionHasIetfInvariantHeader(framer_->transport_version()) &&
+  return version().HasIetfInvariantHeader() &&
          packet_.encryption_level < ENCRYPTION_FORWARD_SECURE;
 }