| Index: net/quic/quic_connection.h
|
| diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
|
| index 0b5dd00fa48bc86cff30022d8feaaef9c357d274..84bd78d9cbef8337f72a753fadfc29f81c9d6023 100644
|
| --- a/net/quic/quic_connection.h
|
| +++ b/net/quic/quic_connection.h
|
| @@ -494,6 +494,11 @@ class NET_EXPORT_PRIVATE QuicConnection
|
|
|
| bool is_server() const { return is_server_; }
|
|
|
| + // Allow easy overriding of truncated connection IDs.
|
| + void set_can_truncate_connection_ids(bool can) {
|
| + can_truncate_connection_ids_ = can;
|
| + }
|
| +
|
| // Returns the underlying sent packet manager.
|
| const QuicSentPacketManager& sent_packet_manager() const {
|
| return sent_packet_manager_;
|
| @@ -557,6 +562,7 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| bool SelectMutualVersion(const QuicVersionVector& available_versions);
|
|
|
| QuicPacketWriter* writer() { return writer_; }
|
| + const QuicPacketWriter* writer() const { return writer_; }
|
|
|
| bool peer_port_changed() const { return peer_port_changed_; }
|
|
|
| @@ -811,6 +817,10 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| // We do not support connection migration when the self port changed.
|
| bool self_port_changed_;
|
|
|
| + // Set to false if the connection should not send truncated connection IDs to
|
| + // the peer, even if the peer supports it.
|
| + bool can_truncate_connection_ids_;
|
| +
|
| // If non-empty this contains the set of versions received in a
|
| // version negotiation packet.
|
| QuicVersionVector server_supported_versions_;
|
|
|