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/ip_address.h" | 8 #include "net/base/ip_address.h" |
9 #include "net/base/linked_hash_map.h" | 9 #include "net/base/linked_hash_map.h" |
10 #include "net/quic/quic_alarm.h" | 10 #include "net/quic/core/quic_alarm.h" |
11 #include "net/quic/quic_alarm_factory.h" | 11 #include "net/quic/core/quic_alarm_factory.h" |
12 #include "net/quic/quic_clock.h" | 12 #include "net/quic/core/quic_clock.h" |
13 #include "net/quic/quic_protocol.h" | 13 #include "net/quic/core/quic_protocol.h" |
14 #include "net/quic/quic_time.h" | 14 #include "net/quic/core/quic_time.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 namespace test { | 18 namespace test { |
19 class QuicBufferedPacketStorePeer; | 19 class QuicBufferedPacketStorePeer; |
20 } // namespace test | 20 } // namespace test |
21 | 21 |
22 // This class buffers undeliverable packets for each connection until either | 22 // This class buffers undeliverable packets for each connection until either |
23 // 1) They are requested to be delivered via DeliverPacket(), or | 23 // 1) They are requested to be delivered via DeliverPacket(), or |
24 // 2) They expire after exceeding their lifetime in the store. | 24 // 2) They expire after exceeding their lifetime in the store. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const QuicClock* clock_; // Unowned. | 115 const QuicClock* clock_; // Unowned. |
116 | 116 |
117 // This alarm fires every |connection_life_span_| to clean up | 117 // This alarm fires every |connection_life_span_| to clean up |
118 // packets staying in the store for too long. | 118 // packets staying in the store for too long. |
119 std::unique_ptr<QuicAlarm> expiration_alarm_; | 119 std::unique_ptr<QuicAlarm> expiration_alarm_; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace net | 122 } // namespace net |
123 | 123 |
124 #endif // NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ | 124 #endif // NET_QUIC_QUIC_BUFFERED_PACKET_STORE_H_ |
OLD | NEW |