Index: net/quic/quic_connection.h |
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h |
index f59ed5547f3ccdeb9a656807fa4d499a6f3c153b..6c659a919412f8b52acd091d660df6529ae6feb1 100644 |
--- a/net/quic/quic_connection.h |
+++ b/net/quic/quic_connection.h |
@@ -697,10 +697,14 @@ class NET_EXPORT_PRIVATE QuicConnection |
bool WritePacketInner(QueuedPacket* packet); |
// Make sure an ack we got from our peer is sane. |
- bool ValidateAckFrame(const QuicAckFrame& incoming_ack); |
+ // Returns nullptr for valid acks or an error std::string if it was invalid. |
+ const char* ValidateAckFrame(const QuicAckFrame& incoming_ack); |
// Make sure a stop waiting we got from our peer is sane. |
- bool ValidateStopWaitingFrame(const QuicStopWaitingFrame& stop_waiting); |
+ // Returns nullptr if the frame is valid or an error std::string if it was |
+ // invalid. |
+ const char* ValidateStopWaitingFrame( |
+ const QuicStopWaitingFrame& stop_waiting); |
// Sends a version negotiation packet to the peer. |
void SendVersionNegotiationPacket(); |