| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_PACKET_CREATOR_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| 7 | 7 |
| 8 #include "net/quic/quic_protocol.h" | 8 #include "net/quic/quic_protocol.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 static bool IsFecEnabled(QuicPacketCreator* creator); | 45 static bool IsFecEnabled(QuicPacketCreator* creator); |
| 46 static void StartFecProtectingPackets(QuicPacketCreator* creator); | 46 static void StartFecProtectingPackets(QuicPacketCreator* creator); |
| 47 static void StopFecProtectingPackets(QuicPacketCreator* creator); | 47 static void StopFecProtectingPackets(QuicPacketCreator* creator); |
| 48 static SerializedPacket SerializeFec(QuicPacketCreator* creator, | 48 static SerializedPacket SerializeFec(QuicPacketCreator* creator, |
| 49 char* buffer, | 49 char* buffer, |
| 50 size_t buffer_len); | 50 size_t buffer_len); |
| 51 static void ResetFecGroup(QuicPacketCreator* creator); | 51 static void ResetFecGroup(QuicPacketCreator* creator); |
| 52 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); | 52 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); |
| 53 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment. | 53 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment. |
| 54 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); | 54 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); |
| 55 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); | 58 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace test | 61 } // namespace test |
| 61 | 62 |
| 62 } // namespace net | 63 } // namespace net |
| 63 | 64 |
| 64 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 65 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| OLD | NEW |