| Index: net/quic/quic_packet_creator.h
|
| diff --git a/net/quic/quic_packet_creator.h b/net/quic/quic_packet_creator.h
|
| index fc76f5b96f26b3d43cdfdd03488696b7b98bd8a1..fa4ce25f3b211c981f50346e11781281ae05b185 100644
|
| --- a/net/quic/quic_packet_creator.h
|
| +++ b/net/quic/quic_packet_creator.h
|
| @@ -191,11 +191,12 @@ class NET_EXPORT_PRIVATE QuicPacketCreator : public QuicFecBuilderInterface {
|
| return max_packet_length_;
|
| }
|
|
|
| - void set_max_packet_length(QuicByteCount length) {
|
| - // |max_packet_length_| should not be changed mid-packet or mid-FEC group.
|
| - DCHECK(fec_group_.get() == nullptr && queued_frames_.empty());
|
| - max_packet_length_ = length;
|
| - }
|
| + // Sets the encrypter to use for the encryption level and updates the max
|
| + // plaintext size.
|
| + void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter);
|
| +
|
| + // Sets the maximum packet length.
|
| + void SetMaxPacketLength(QuicByteCount length);
|
|
|
| // Returns current max number of packets covered by an FEC group.
|
| size_t max_packets_per_fec_group() const {
|
| @@ -265,6 +266,7 @@ class NET_EXPORT_PRIVATE QuicPacketCreator : public QuicFecBuilderInterface {
|
| // packet_size_ is mutable because it's just a cache of the current size.
|
| // packet_size should never be read directly, use PacketSize() instead.
|
| mutable size_t packet_size_;
|
| + mutable size_t max_plaintext_size_;
|
| QuicFrames queued_frames_;
|
| scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_;
|
|
|
|
|