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_CORE_QUIC_CONNECTION_H_ |
17 #define NET_QUIC_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> |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 | 1105 |
1106 // Indicates whether a write error is encountered currently. This is used to | 1106 // Indicates whether a write error is encountered currently. This is used to |
1107 // avoid infinite write errors. | 1107 // avoid infinite write errors. |
1108 bool write_error_occured_; | 1108 bool write_error_occured_; |
1109 | 1109 |
1110 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1110 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
1111 }; | 1111 }; |
1112 | 1112 |
1113 } // namespace net | 1113 } // namespace net |
1114 | 1114 |
1115 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1115 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
OLD | NEW |