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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 QuicStreamOffset offset, | 46 QuicStreamOffset offset, |
47 bool fin, | 47 bool fin, |
48 QuicFrame* frame); | 48 QuicFrame* frame); |
49 static bool IsFecProtected(QuicPacketCreator* creator); | 49 static bool IsFecProtected(QuicPacketCreator* creator); |
50 static bool IsFecEnabled(QuicPacketCreator* creator); | 50 static bool IsFecEnabled(QuicPacketCreator* creator); |
51 static void StartFecProtectingPackets(QuicPacketCreator* creator); | 51 static void StartFecProtectingPackets(QuicPacketCreator* creator); |
52 static void StopFecProtectingPackets(QuicPacketCreator* creator); | 52 static void StopFecProtectingPackets(QuicPacketCreator* creator); |
53 static SerializedPacket SerializeFec(QuicPacketCreator* creator, | 53 static SerializedPacket SerializeFec(QuicPacketCreator* creator, |
54 char* buffer, | 54 char* buffer, |
55 size_t buffer_len); | 55 size_t buffer_len); |
| 56 static SerializedPacket SerializeAllFrames(QuicPacketCreator* creator, |
| 57 const QuicFrames& frames, |
| 58 char* buffer, |
| 59 size_t buffer_len); |
56 static void ResetFecGroup(QuicPacketCreator* creator); | 60 static void ResetFecGroup(QuicPacketCreator* creator); |
57 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); | 61 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); |
58 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment. | 62 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment. |
59 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); | 63 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); |
60 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); | 64 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); |
61 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); | 65 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); |
62 | 66 |
63 private: | 67 private: |
64 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); | 68 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); |
65 }; | 69 }; |
66 | 70 |
67 } // namespace test | 71 } // namespace test |
68 | 72 |
69 } // namespace net | 73 } // namespace net |
70 | 74 |
71 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 75 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
OLD | NEW |