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 #include "net/quic/core/quic_buffered_packet_store.h" | 5 #include "net/quic/core/quic_buffered_packet_store.h" |
6 | 6 |
7 #include "net/quic/core/quic_flags.h" | |
8 #include "net/quic/platform/api/quic_bug_tracker.h" | 7 #include "net/quic/platform/api/quic_bug_tracker.h" |
| 8 #include "net/quic/platform/api/quic_flags.h" |
9 #include "net/quic/platform/api/quic_map_util.h" | 9 #include "net/quic/platform/api/quic_map_util.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
13 typedef QuicBufferedPacketStore::BufferedPacket BufferedPacket; | 13 typedef QuicBufferedPacketStore::BufferedPacket BufferedPacket; |
14 typedef QuicBufferedPacketStore::BufferedPacketList BufferedPacketList; | 14 typedef QuicBufferedPacketStore::BufferedPacketList BufferedPacketList; |
15 typedef QuicBufferedPacketStore::EnqueuePacketResult EnqueuePacketResult; | 15 typedef QuicBufferedPacketStore::EnqueuePacketResult EnqueuePacketResult; |
16 | 16 |
17 // Max number of connections this store can keep track. | 17 // Max number of connections this store can keep track. |
18 static const size_t kDefaultMaxConnectionsInStore = 100; | 18 static const size_t kDefaultMaxConnectionsInStore = 100; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 DCHECK(!packets.empty()) << "Try to deliver connectons without CHLO"; | 213 DCHECK(!packets.empty()) << "Try to deliver connectons without CHLO"; |
214 return packets; | 214 return packets; |
215 } | 215 } |
216 | 216 |
217 bool QuicBufferedPacketStore::HasChloForConnection( | 217 bool QuicBufferedPacketStore::HasChloForConnection( |
218 QuicConnectionId connection_id) { | 218 QuicConnectionId connection_id) { |
219 return QuicContainsKey(connections_with_chlo_, connection_id); | 219 return QuicContainsKey(connections_with_chlo_, connection_id); |
220 } | 220 } |
221 | 221 |
222 } // namespace net | 222 } // namespace net |
OLD | NEW |