| 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 // |
| 11 // On the client side, the Connection handles the raw reads, as well as the | 11 // On the client side, the Connection handles the raw reads, as well as the |
| 12 // processing. | 12 // processing. |
| 13 // | 13 // |
| 14 // Note: this class is not thread-safe. | 14 // Note: this class is not thread-safe. |
| 15 | 15 |
| 16 #ifndef NET_QUIC_QUIC_CONNECTION_H_ | 16 #ifndef NET_QUIC_QUIC_CONNECTION_H_ |
| 17 #define NET_QUIC_QUIC_CONNECTION_H_ | 17 #define NET_QUIC_QUIC_CONNECTION_H_ |
| 18 | 18 |
| 19 #include <list> | 19 #include <list> |
| 20 #include <map> | 20 #include <map> |
| 21 #include <queue> | 21 #include <queue> |
| 22 #include <set> | 22 #include <set> |
| 23 #include <vector> | 23 #include <vector> |
| 24 | 24 |
| 25 #include "base/hash_tables.h" | 25 #include "base/containers/hash_tables.h" |
| 26 #include "net/base/ip_endpoint.h" | 26 #include "net/base/ip_endpoint.h" |
| 27 #include "net/base/linked_hash_map.h" | 27 #include "net/base/linked_hash_map.h" |
| 28 #include "net/quic/congestion_control/quic_congestion_manager.h" | 28 #include "net/quic/congestion_control/quic_congestion_manager.h" |
| 29 #include "net/quic/quic_blocked_writer_interface.h" | 29 #include "net/quic/quic_blocked_writer_interface.h" |
| 30 #include "net/quic/quic_framer.h" | 30 #include "net/quic/quic_framer.h" |
| 31 #include "net/quic/quic_packet_creator.h" | 31 #include "net/quic/quic_packet_creator.h" |
| 32 #include "net/quic/quic_packet_entropy_manager.h" | 32 #include "net/quic/quic_packet_entropy_manager.h" |
| 33 #include "net/quic/quic_packet_generator.h" | 33 #include "net/quic/quic_packet_generator.h" |
| 34 #include "net/quic/quic_protocol.h" | 34 #include "net/quic/quic_protocol.h" |
| 35 #include "net/quic/quic_stats.h" | 35 #include "net/quic/quic_stats.h" |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 // Set to true if the udp packet headers have a new self or peer address. | 676 // Set to true if the udp packet headers have a new self or peer address. |
| 677 // This is checked later on validating a data or version negotiation packet. | 677 // This is checked later on validating a data or version negotiation packet. |
| 678 bool address_migrating_; | 678 bool address_migrating_; |
| 679 | 679 |
| 680 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 680 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 681 }; | 681 }; |
| 682 | 682 |
| 683 } // namespace net | 683 } // namespace net |
| 684 | 684 |
| 685 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 685 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |