| OLD | NEW |
| 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_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/quic/core/quic_packets.h" | 9 #include "net/quic/core/quic_packets.h" |
| 10 #include "net/quic/core/quic_sent_packet_manager.h" | 10 #include "net/quic/core/quic_sent_packet_manager.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 static void SetConsecutiveRtoCount(QuicSentPacketManager* sent_packet_manager, | 77 static void SetConsecutiveRtoCount(QuicSentPacketManager* sent_packet_manager, |
| 78 size_t count); | 78 size_t count); |
| 79 | 79 |
| 80 static void SetConsecutiveTlpCount(QuicSentPacketManager* sent_packet_manager, | 80 static void SetConsecutiveTlpCount(QuicSentPacketManager* sent_packet_manager, |
| 81 size_t count); | 81 size_t count); |
| 82 | 82 |
| 83 static QuicSustainedBandwidthRecorder& GetBandwidthRecorder( | 83 static QuicSustainedBandwidthRecorder& GetBandwidthRecorder( |
| 84 QuicSentPacketManager* sent_packet_manager); | 84 QuicSentPacketManager* sent_packet_manager); |
| 85 | 85 |
| 86 static void SetUsingPacing(QuicSentPacketManager* sent_packet_manager, |
| 87 bool using_pacing); |
| 88 |
| 86 static bool UsingPacing(const QuicSentPacketManager* sent_packet_manager); | 89 static bool UsingPacing(const QuicSentPacketManager* sent_packet_manager); |
| 87 | 90 |
| 88 static bool IsUnacked(QuicSentPacketManager* sent_packet_manager, | 91 static bool IsUnacked(QuicSentPacketManager* sent_packet_manager, |
| 89 QuicPacketNumber packet_number); | 92 QuicPacketNumber packet_number); |
| 90 | 93 |
| 91 static bool HasRetransmittableFrames( | 94 static bool HasRetransmittableFrames( |
| 92 QuicSentPacketManager* sent_packet_manager, | 95 QuicSentPacketManager* sent_packet_manager, |
| 93 QuicPacketNumber packet_number); | 96 QuicPacketNumber packet_number); |
| 94 | 97 |
| 95 static QuicUnackedPacketMap* GetUnackedPacketMap( | 98 static QuicUnackedPacketMap* GetUnackedPacketMap( |
| 96 QuicSentPacketManager* sent_packet_manager); | 99 QuicSentPacketManager* sent_packet_manager); |
| 97 | 100 |
| 98 private: | 101 private: |
| 99 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); | 102 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 } // namespace test | 105 } // namespace test |
| 103 | 106 |
| 104 } // namespace net | 107 } // namespace net |
| 105 | 108 |
| 106 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 109 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
| OLD | NEW |