| 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_CORE_QUIC_CONNECTION_H_ | 16 #ifndef NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| 17 #define NET_QUIC_CORE_QUIC_CONNECTION_H_ | 17 #define NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| 18 | 18 |
| 19 #include <stddef.h> | 19 #include <stddef.h> |
| 20 #include <stdint.h> | 20 #include <stdint.h> |
| 21 | 21 |
| 22 #include <deque> | 22 #include <deque> |
| 23 #include <list> | 23 #include <list> |
| 24 #include <map> | 24 #include <map> |
| 25 #include <memory> | 25 #include <memory> |
| 26 #include <queue> | 26 #include <queue> |
| 27 #include <string> | 27 #include <string> |
| 28 #include <vector> | 28 #include <vector> |
| 29 | 29 |
| 30 #include "base/logging.h" | |
| 31 #include "base/macros.h" | 30 #include "base/macros.h" |
| 32 #include "base/strings/string_piece.h" | 31 #include "base/strings/string_piece.h" |
| 33 #include "net/quic/core/crypto/quic_decrypter.h" | 32 #include "net/quic/core/crypto/quic_decrypter.h" |
| 34 #include "net/quic/core/quic_alarm.h" | 33 #include "net/quic/core/quic_alarm.h" |
| 35 #include "net/quic/core/quic_alarm_factory.h" | 34 #include "net/quic/core/quic_alarm_factory.h" |
| 36 #include "net/quic/core/quic_blocked_writer_interface.h" | 35 #include "net/quic/core/quic_blocked_writer_interface.h" |
| 37 #include "net/quic/core/quic_connection_stats.h" | 36 #include "net/quic/core/quic_connection_stats.h" |
| 38 #include "net/quic/core/quic_framer.h" | 37 #include "net/quic/core/quic_framer.h" |
| 39 #include "net/quic/core/quic_multipath_sent_packet_manager.h" | 38 #include "net/quic/core/quic_multipath_sent_packet_manager.h" |
| 40 #include "net/quic/core/quic_one_block_arena.h" | 39 #include "net/quic/core/quic_one_block_arena.h" |
| (...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 // 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 |
| 1109 // avoid infinite write errors. | 1108 // avoid infinite write errors. |
| 1110 bool write_error_occured_; | 1109 bool write_error_occured_; |
| 1111 | 1110 |
| 1112 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1111 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1113 }; | 1112 }; |
| 1114 | 1113 |
| 1115 } // namespace net | 1114 } // namespace net |
| 1116 | 1115 |
| 1117 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ | 1116 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| OLD | NEW |