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

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

Issue 694383002: Tiny refactor of QuicSentPacketManager::NetworkChangeVisitor's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_number_of_emulated_connections_78876869
Patch Set: Created 6 years, 1 month 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_packet_generator.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }; 60 };
61 61
62 // Interface which gets callbacks from the QuicSentPacketManager when 62 // Interface which gets callbacks from the QuicSentPacketManager when
63 // network-related state changes. Implementations must not mutate the 63 // network-related state changes. Implementations must not mutate the
64 // state of the packet manager as a result of these callbacks. 64 // state of the packet manager as a result of these callbacks.
65 class NET_EXPORT_PRIVATE NetworkChangeVisitor { 65 class NET_EXPORT_PRIVATE NetworkChangeVisitor {
66 public: 66 public:
67 virtual ~NetworkChangeVisitor() {} 67 virtual ~NetworkChangeVisitor() {}
68 68
69 // Called when congestion window may have changed. 69 // Called when congestion window may have changed.
70 virtual void OnCongestionWindowChange(QuicByteCount congestion_window) = 0; 70 virtual void OnCongestionWindowChange() = 0;
71 // TODO(jri): Add OnRttStatsChange() to this class as well. 71 // TODO(jri): Add OnRttStatsChange() to this class as well.
72 }; 72 };
73 73
74 // Struct to store the pending retransmission information. 74 // Struct to store the pending retransmission information.
75 struct PendingRetransmission { 75 struct PendingRetransmission {
76 PendingRetransmission(QuicPacketSequenceNumber sequence_number, 76 PendingRetransmission(QuicPacketSequenceNumber sequence_number,
77 TransmissionType transmission_type, 77 TransmissionType transmission_type,
78 const RetransmittableFrames& retransmittable_frames, 78 const RetransmittableFrames& retransmittable_frames,
79 QuicSequenceNumberLength sequence_number_length) 79 QuicSequenceNumberLength sequence_number_length)
80 : sequence_number(sequence_number), 80 : sequence_number(sequence_number),
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // Records bandwidth from server to client in normal operation, over periods 383 // Records bandwidth from server to client in normal operation, over periods
384 // of time with no loss events. 384 // of time with no loss events.
385 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 385 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
386 386
387 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 387 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
388 }; 388 };
389 389
390 } // namespace net 390 } // namespace net
391 391
392 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 392 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698