Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: net/quic/core/quic_buffered_packet_store.cc

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.cc ('k') | net/quic/core/quic_buffered_packet_store_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698