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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 QuicStreamId id, | 43 QuicStreamId id, |
44 QuicIOVector iov, | 44 QuicIOVector iov, |
45 size_t iov_offset, | 45 size_t iov_offset, |
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 void 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, | 56 static SerializedPacket SerializeAllFrames(QuicPacketCreator* creator, |
57 const QuicFrames& frames, | 57 const QuicFrames& frames, |
58 char* buffer, | 58 char* buffer, |
59 size_t buffer_len); | 59 size_t buffer_len); |
60 static void ResetFecGroup(QuicPacketCreator* creator); | 60 static void ResetFecGroup(QuicPacketCreator* creator); |
61 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); | 61 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); |
62 // 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. |
63 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); | 63 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); |
64 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); | 64 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); |
65 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); | 65 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); |
66 | 66 |
67 private: | 67 private: |
68 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); | 68 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace test | 71 } // namespace test |
72 | 72 |
73 } // namespace net | 73 } // namespace net |
74 | 74 |
75 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 75 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
OLD | NEW |