OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 #ifndef NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ | 5 #ifndef NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ |
6 #define NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ | 6 #define NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ |
7 | 7 |
8 #include "net/base/linked_hash_map.h" | 8 #include "net/base/linked_hash_map.h" |
9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
10 #include "net/quic/core/quic_alarm.h" | 10 #include "net/quic/core/quic_alarm.h" |
11 #include "net/quic/core/quic_alarm_factory.h" | 11 #include "net/quic/core/quic_alarm_factory.h" |
12 #include "net/quic/core/quic_clock.h" | 12 #include "net/quic/core/quic_clock.h" |
13 #include "net/quic/core/quic_protocol.h" | 13 #include "net/quic/core/quic_packets.h" |
14 #include "net/quic/core/quic_time.h" | 14 #include "net/quic/core/quic_time.h" |
15 #include "net/quic/platform/api/quic_socket_address.h" | 15 #include "net/quic/platform/api/quic_socket_address.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 namespace test { | 19 namespace test { |
20 class QuicBufferedPacketStorePeer; | 20 class QuicBufferedPacketStorePeer; |
21 } // namespace test | 21 } // namespace test |
22 | 22 |
23 // This class buffers packets for each connection until either | 23 // This class buffers packets for each connection until either |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 std::unique_ptr<QuicAlarm> expiration_alarm_; | 152 std::unique_ptr<QuicAlarm> expiration_alarm_; |
153 | 153 |
154 // Keeps track of connection with CHLO buffered up already and the order they | 154 // Keeps track of connection with CHLO buffered up already and the order they |
155 // arrive. | 155 // arrive. |
156 linked_hash_map<QuicConnectionId, bool> connections_with_chlo_; | 156 linked_hash_map<QuicConnectionId, bool> connections_with_chlo_; |
157 }; | 157 }; |
158 | 158 |
159 } // namespace net | 159 } // namespace net |
160 | 160 |
161 #endif // NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ | 161 #endif // NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ |
OLD | NEW |