gfe-relnote: (n/a) Cleanup references to stateless reject from QuicDispatcher. Code not used, not protected.
This is the last code cleanup for stateless reject.
PiperOrigin-RevId: 253095819
Change-Id: If87f5a39c37127dea5cbdc04a99bfc2973abab79
diff --git a/quic/core/quic_dispatcher.h b/quic/core/quic_dispatcher.h
index 1a023e0..19ecd63 100644
--- a/quic/core/quic_dispatcher.h
+++ b/quic/core/quic_dispatcher.h
@@ -244,9 +244,8 @@
// Returns the actual client address of the current packet.
// This function should only be called once per packet at the very beginning
- // of ProcessPacket(), its result is saved to |current_client_address_|, which
- // is guaranteed to be valid even in the stateless rejector's callback(i.e.
- // OnStatelessRejectorProcessDone).
+ // of ProcessPacket(), its result is saved to |current_client_address_| while
+ // the packet is being processed.
// By default, this function returns |current_peer_address_|, subclasses have
// the option to override this function to return a different address.
virtual const QuicSocketAddress GetClientAddress() const;
@@ -344,7 +343,7 @@
const std::string& error_details,
QuicTimeWaitListManager::TimeWaitAction action);
- // Save/Restore per packet context. Used by async stateless rejector.
+ // Save/Restore per packet context.
virtual std::unique_ptr<QuicPerPacketContext> GetPerPacketContext() const;
virtual void RestorePerPacketContext(
std::unique_ptr<QuicPerPacketContext> /*context*/) {}
@@ -383,14 +382,6 @@
// and then ProcessUnauthenticatedHeaderFate.
void ProcessHeader(const QuicPacketHeader& header);
- // TODO(wub): Move the body to ProcessHeader, then remove this function.
- // Determine whether the current packet needs to be processed now or buffered
- // for later processing, then invokes ProcessUnauthenticatedHeaderFate.
- void ProcessOrBufferPacket(QuicConnectionId server_connection_id,
- PacketHeaderFormat form,
- bool version_flag,
- ParsedQuicVersion version);
-
// Deliver |packets| to |session| for further processing.
void DeliverPacketsToSession(
const std::list<QuicBufferedPacketStore::BufferedPacket>& packets,
@@ -465,8 +456,6 @@
QuicConnectionIdSet temporarily_buffered_connections_;
// Information about the packet currently being handled.
-
- // Used for stateless rejector to generate and validate source address token.
QuicSocketAddress current_client_address_;
QuicSocketAddress current_peer_address_;
QuicSocketAddress current_self_address_;