summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/quic_connection.h')
-rw-r--r--net/quic/quic_connection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index ee5955f..4d57208 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -137,7 +137,7 @@ class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor
const IPEndPoint& peer_address,
const QuicEncryptedPacket& packet) {}
- // Called when a packet is recived with a connection id that does not
+ // Called when a packet is received with a connection id that does not
// match the ID of this connection.
virtual void OnIncorrectConnectionId(
QuicConnectionId connection_id) {}
@@ -375,6 +375,7 @@ class NET_EXPORT_PRIVATE QuicConnection
void set_visitor(QuicConnectionVisitorInterface* visitor) {
visitor_ = visitor;
}
+ // This method takes ownership of |debug_visitor|.
void set_debug_visitor(QuicConnectionDebugVisitor* debug_visitor) {
debug_visitor_.reset(debug_visitor);
packet_generator_.set_debug_delegate(debug_visitor);