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

Side by Side Diff: net/quic/quic_sent_packet_manager.h

Issue 612323013: QUIC - (no behavior change) s/NULL/nullptr/g in .../quic/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « net/quic/quic_reliable_client_stream.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SENT_PACKET_MANAGER_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 QuicPacketSequenceNumber acked_sequence_number); 320 QuicPacketSequenceNumber acked_sequence_number);
321 321
322 // Returns true if the client is sending or the server has received a 322 // Returns true if the client is sending or the server has received a
323 // connection option. 323 // connection option.
324 bool HasClientSentConnectionOption(const QuicConfig& config, 324 bool HasClientSentConnectionOption(const QuicConfig& config,
325 QuicTag tag) const; 325 QuicTag tag) const;
326 326
327 // Newly serialized retransmittable and fec packets are added to this map, 327 // Newly serialized retransmittable and fec packets are added to this map,
328 // which contains owning pointers to any contained frames. If a packet is 328 // which contains owning pointers to any contained frames. If a packet is
329 // retransmitted, this map will contain entries for both the old and the new 329 // retransmitted, this map will contain entries for both the old and the new
330 // packet. The old packet's retransmittable frames entry will be NULL, while 330 // packet. The old packet's retransmittable frames entry will be nullptr,
331 // the new packet's entry will contain the frames to retransmit. 331 // while the new packet's entry will contain the frames to retransmit.
332 // If the old packet is acked before the new packet, then the old entry will 332 // If the old packet is acked before the new packet, then the old entry will
333 // be removed from the map and the new entry's retransmittable frames will be 333 // be removed from the map and the new entry's retransmittable frames will be
334 // set to NULL. 334 // set to nullptr.
335 QuicUnackedPacketMap unacked_packets_; 335 QuicUnackedPacketMap unacked_packets_;
336 336
337 // Pending retransmissions which have not been packetized and sent yet. 337 // Pending retransmissions which have not been packetized and sent yet.
338 PendingRetransmissionMap pending_retransmissions_; 338 PendingRetransmissionMap pending_retransmissions_;
339 339
340 // Tracks if the connection was created by the server. 340 // Tracks if the connection was created by the server.
341 bool is_server_; 341 bool is_server_;
342 342
343 // An AckNotifier can register to be informed when ACKs have been received for 343 // An AckNotifier can register to be informed when ACKs have been received for
344 // all packets that a given block of data was sent in. The AckNotifierManager 344 // all packets that a given block of data was sent in. The AckNotifierManager
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // Records bandwidth from server to client in normal operation, over periods 384 // Records bandwidth from server to client in normal operation, over periods
385 // of time with no loss events. 385 // of time with no loss events.
386 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 386 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
387 387
388 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 388 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
389 }; 389 };
390 390
391 } // namespace net 391 } // namespace net
392 392
393 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 393 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_reliable_client_stream.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698