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

Unified Diff: net/quic/test_tools/quic_sent_packet_manager_peer.h

Issue 2002083002: Add QuicSentPacketManagerInterface, and QuicSentPacketManager implements it. No functional change e… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | net/quic/test_tools/quic_sent_packet_manager_peer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_sent_packet_manager_peer.h
diff --git a/net/quic/test_tools/quic_sent_packet_manager_peer.h b/net/quic/test_tools/quic_sent_packet_manager_peer.h
index 392e986f13a34201dd0b19b97909cb9101cbeba8..a583dbf85edaf0adadd49ba8457749223675627e 100644
--- a/net/quic/test_tools/quic_sent_packet_manager_peer.h
+++ b/net/quic/test_tools/quic_sent_packet_manager_peer.h
@@ -56,11 +56,14 @@ class QuicSentPacketManagerPeer {
static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager,
QuicPacketNumber packet_number);
- // Returns true if |packet_number| is a retransmission of a packet.
+ // Returns true if |packet_number| of |path_id| is a retransmission of a
+ // packet.
static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager,
+ QuicPathId path_id,
QuicPacketNumber packet_number);
static void MarkForRetransmission(QuicSentPacketManager* sent_packet_manager,
+ QuicPathId path_id,
QuicPacketNumber packet_number,
TransmissionType transmission_type);
@@ -76,8 +79,8 @@ class QuicSentPacketManagerPeer {
static QuicByteCount GetBytesInFlight(
const QuicSentPacketManager* sent_packet_manager);
- static QuicSentPacketManager::NetworkChangeVisitor* GetNetworkChangeVisitor(
- const QuicSentPacketManager* sent_packet_manager);
+ static QuicSentPacketManagerInterface::NetworkChangeVisitor*
+ GetNetworkChangeVisitor(const QuicSentPacketManager* sent_packet_manager);
static void SetConsecutiveRtoCount(QuicSentPacketManager* sent_packet_manager,
size_t count);
@@ -88,6 +91,8 @@ class QuicSentPacketManagerPeer {
static QuicSustainedBandwidthRecorder& GetBandwidthRecorder(
QuicSentPacketManager* sent_packet_manager);
+ static bool UsingPacing(const QuicSentPacketManager* sent_packet_manager);
+
private:
DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer);
};
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | net/quic/test_tools/quic_sent_packet_manager_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698