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