gfe-relnote: Unifiy QuicPacketCreator::DelegateInterface and QuicPacketGenerator::DelegateInterface. No functional change expected, not protected.
This is intended to combine generator and creator.
PiperOrigin-RevId: 269403664
Change-Id: I9f54ccfe320f917b616843ac3628736bb78028fa
diff --git a/quic/core/quic_packet_creator.h b/quic/core/quic_packet_creator.h
index a3f6c00..9ef910a 100644
--- a/quic/core/quic_packet_creator.h
+++ b/quic/core/quic_packet_creator.h
@@ -42,6 +42,13 @@
// Called when an unrecoverable error is encountered.
virtual void OnUnrecoverableError(QuicErrorCode error,
const std::string& error_details) = 0;
+
+ // Consults delegate whether a packet should be generated.
+ virtual bool ShouldGeneratePacket(HasRetransmittableData retransmittable,
+ IsHandshake handshake) = 0;
+ // Called when there is data to be sent. Retrieves updated ACK frame from
+ // the delegate.
+ virtual const QuicFrames MaybeBundleAckOpportunistically() = 0;
};
// Interface which gets callbacks from the QuicPacketCreator at interesting