| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // The entity that handles framing writes for a Quic client or server. | 5 // The entity that handles framing writes for a Quic client or server. |
| 6 // Each QuicSession will have a connection associated with it. | 6 // Each QuicSession will have a connection associated with it. |
| 7 // | 7 // |
| 8 // On the server side, the Dispatcher handles the raw reads, and hands off | 8 // On the server side, the Dispatcher handles the raw reads, and hands off |
| 9 // packets via ProcessUdpPacket for framing and processing. | 9 // packets via ProcessUdpPacket for framing and processing. |
| 10 // | 10 // |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 | 652 |
| 653 // Sends an MTU discovery packet of size |target_mtu|. If the packet is | 653 // Sends an MTU discovery packet of size |target_mtu|. If the packet is |
| 654 // acknowledged by the peer, the maximum packet size will be increased to | 654 // acknowledged by the peer, the maximum packet size will be increased to |
| 655 // |target_mtu|. | 655 // |target_mtu|. |
| 656 void SendMtuDiscoveryPacket(QuicByteCount target_mtu); | 656 void SendMtuDiscoveryPacket(QuicByteCount target_mtu); |
| 657 | 657 |
| 658 // Sends an MTU discovery packet of size |mtu_discovery_target_| and updates | 658 // Sends an MTU discovery packet of size |mtu_discovery_target_| and updates |
| 659 // the MTU discovery alarm. | 659 // the MTU discovery alarm. |
| 660 void DiscoverMtu(); | 660 void DiscoverMtu(); |
| 661 | 661 |
| 662 // Sets the stream notifer on the SentPacketManager. |
| 663 void SetStreamNotifier(StreamNotifierInterface* stream_notifier); |
| 664 |
| 662 // Return the name of the cipher of the primary decrypter of the framer. | 665 // Return the name of the cipher of the primary decrypter of the framer. |
| 663 const char* cipher_name() const { return framer_.decrypter()->cipher_name(); } | 666 const char* cipher_name() const { return framer_.decrypter()->cipher_name(); } |
| 664 // Return the id of the cipher of the primary decrypter of the framer. | 667 // Return the id of the cipher of the primary decrypter of the framer. |
| 665 uint32_t cipher_id() const { return framer_.decrypter()->cipher_id(); } | 668 uint32_t cipher_id() const { return framer_.decrypter()->cipher_id(); } |
| 666 | 669 |
| 667 std::vector<std::unique_ptr<QuicEncryptedPacket>>* termination_packets() { | 670 std::vector<std::unique_ptr<QuicEncryptedPacket>>* termination_packets() { |
| 668 return termination_packets_.get(); | 671 return termination_packets_.get(); |
| 669 } | 672 } |
| 670 | 673 |
| 671 bool ack_queued() const { return ack_queued_; } | 674 bool ack_queued() const { return ack_queued_; } |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 | 1096 |
| 1094 // Consecutive number of sent packets which have no retransmittable frames. | 1097 // Consecutive number of sent packets which have no retransmittable frames. |
| 1095 size_t consecutive_num_packets_with_no_retransmittable_frames_; | 1098 size_t consecutive_num_packets_with_no_retransmittable_frames_; |
| 1096 | 1099 |
| 1097 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1100 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1098 }; | 1101 }; |
| 1099 | 1102 |
| 1100 } // namespace net | 1103 } // namespace net |
| 1101 | 1104 |
| 1102 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ | 1105 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| OLD | NEW |