| 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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 | 679 |
| 680 QuicConnectionHelperInterface* helper() { return helper_; } | 680 QuicConnectionHelperInterface* helper() { return helper_; } |
| 681 QuicAlarmFactory* alarm_factory() { return alarm_factory_; } | 681 QuicAlarmFactory* alarm_factory() { return alarm_factory_; } |
| 682 | 682 |
| 683 base::StringPiece GetCurrentPacket(); | 683 base::StringPiece GetCurrentPacket(); |
| 684 | 684 |
| 685 const QuicPacketGenerator& packet_generator() const { | 685 const QuicPacketGenerator& packet_generator() const { |
| 686 return packet_generator_; | 686 return packet_generator_; |
| 687 } | 687 } |
| 688 | 688 |
| 689 const QuicReceivedPacketManager& received_packet_manager() const { |
| 690 return received_packet_manager_; |
| 691 } |
| 692 |
| 689 EncryptionLevel encryption_level() const { return encryption_level_; } | 693 EncryptionLevel encryption_level() const { return encryption_level_; } |
| 690 | 694 |
| 691 const IPEndPoint& last_packet_source_address() const { | 695 const IPEndPoint& last_packet_source_address() const { |
| 692 return last_packet_source_address_; | 696 return last_packet_source_address_; |
| 693 } | 697 } |
| 694 | 698 |
| 695 void set_largest_packet_size_supported(QuicByteCount size) { | 699 void set_largest_packet_size_supported(QuicByteCount size) { |
| 696 largest_packet_size_supported_ = size; | 700 largest_packet_size_supported_ = size; |
| 697 } | 701 } |
| 698 | 702 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 // Indicates whether a write error is encountered currently. This is used to | 1107 // Indicates whether a write error is encountered currently. This is used to |
| 1104 // avoid infinite write errors. | 1108 // avoid infinite write errors. |
| 1105 bool write_error_occured_; | 1109 bool write_error_occured_; |
| 1106 | 1110 |
| 1107 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1111 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1108 }; | 1112 }; |
| 1109 | 1113 |
| 1110 } // namespace net | 1114 } // namespace net |
| 1111 | 1115 |
| 1112 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1116 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |