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

Side by Side Diff: net/quic/core/quic_sent_packet_manager_interface.h

Issue 2531163009: Move QuicAckListenerInterface, QuicPendingRetransmission, and QuicTransmissionInfo out of quic_pack… (Closed)
Patch Set: Move QuicAckListenerInterface, QuicPendingRetransmission, and QuicTransmissionInfo out of quic_pack… Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 #include "net/quic/core/quic_packets.h" 10 #include "net/quic/core/quic_packets.h"
11 #include "net/quic/core/quic_pending_retransmission.h"
11 #include "net/quic/core/quic_sustained_bandwidth_recorder.h" 12 #include "net/quic/core/quic_sustained_bandwidth_recorder.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 class QuicConfig; 16 class QuicConfig;
16 class RttStats; 17 class RttStats;
17 18
18 class NET_EXPORT_PRIVATE QuicSentPacketManagerInterface { 19 class NET_EXPORT_PRIVATE QuicSentPacketManagerInterface {
19 public: 20 public:
20 // Interface which gets callbacks from the QuicSentPacketManager at 21 // Interface which gets callbacks from the QuicSentPacketManager at
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // alarm fires) if there is still a tail loss probe pending. Invoked after 92 // alarm fires) if there is still a tail loss probe pending. Invoked after
92 // OnRetransmissionTimeout. 93 // OnRetransmissionTimeout.
93 virtual bool MaybeRetransmitTailLossProbe() = 0; 94 virtual bool MaybeRetransmitTailLossProbe() = 0;
94 95
95 // Removes the retransmittable frames from all unencrypted packets on the 96 // Removes the retransmittable frames from all unencrypted packets on the
96 // default path to ensure they don't get retransmitted. 97 // default path to ensure they don't get retransmitted.
97 virtual void NeuterUnencryptedPackets() = 0; 98 virtual void NeuterUnencryptedPackets() = 0;
98 99
99 virtual bool HasPendingRetransmissions() const = 0; 100 virtual bool HasPendingRetransmissions() const = 0;
100 101
101 virtual PendingRetransmission NextPendingRetransmission() = 0; 102 virtual QuicPendingRetransmission NextPendingRetransmission() = 0;
102 103
103 // Returns true if the default path has unacked packets. 104 // Returns true if the default path has unacked packets.
104 virtual bool HasUnackedPackets() const = 0; 105 virtual bool HasUnackedPackets() const = 0;
105 106
106 virtual QuicPacketNumber GetLeastUnacked(QuicPathId path_id) const = 0; 107 virtual QuicPacketNumber GetLeastUnacked(QuicPathId path_id) const = 0;
107 108
108 virtual bool OnPacketSent( 109 virtual bool OnPacketSent(
109 SerializedPacket* serialized_packet, 110 SerializedPacket* serialized_packet,
110 QuicPathId original_path_id, 111 QuicPathId original_path_id,
111 QuicPacketNumber original_packet_number, 112 QuicPacketNumber original_packet_number,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual size_t GetConsecutiveTlpCount() const = 0; 187 virtual size_t GetConsecutiveTlpCount() const = 0;
187 188
188 // Signals to the congestion controller that the connection has no outstanding 189 // Signals to the congestion controller that the connection has no outstanding
189 // data to send. 190 // data to send.
190 virtual void OnApplicationLimited() = 0; 191 virtual void OnApplicationLimited() = 0;
191 }; 192 };
192 193
193 } // namespace net 194 } // namespace net
194 195
195 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ 196 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_packet_manager.cc ('k') | net/quic/core/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698