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

Side by Side Diff: net/quic/test_tools/quic_packet_creator_peer.h

Issue 1784903003: Remove FEC from send path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@114770052
Patch Set: Restore accidentally removed OnRttChanged call Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 QuicPacketNumberLength packet_number_length); 29 QuicPacketNumberLength packet_number_length);
30 static QuicPacketNumberLength GetPacketNumberLength( 30 static QuicPacketNumberLength GetPacketNumberLength(
31 QuicPacketCreator* creator); 31 QuicPacketCreator* creator);
32 static void SetNextPacketNumberLength( 32 static void SetNextPacketNumberLength(
33 QuicPacketCreator* creator, 33 QuicPacketCreator* creator,
34 QuicPacketNumberLength next_packet_number_length); 34 QuicPacketNumberLength next_packet_number_length);
35 static QuicPacketNumberLength NextPacketNumberLength( 35 static QuicPacketNumberLength NextPacketNumberLength(
36 QuicPacketCreator* creator); 36 QuicPacketCreator* creator);
37 static void SetPacketNumber(QuicPacketCreator* creator, QuicPacketNumber s); 37 static void SetPacketNumber(QuicPacketCreator* creator, QuicPacketNumber s);
38 static void FillPacketHeader(QuicPacketCreator* creator, 38 static void FillPacketHeader(QuicPacketCreator* creator,
39 QuicFecGroupNumber fec_group,
40 bool fec_flag,
41 QuicPacketHeader* header); 39 QuicPacketHeader* header);
42 static size_t CreateStreamFrame(QuicPacketCreator* creator, 40 static size_t CreateStreamFrame(QuicPacketCreator* creator,
43 QuicStreamId id, 41 QuicStreamId id,
44 QuicIOVector iov, 42 QuicIOVector iov,
45 size_t iov_offset, 43 size_t iov_offset,
46 QuicStreamOffset offset, 44 QuicStreamOffset offset,
47 bool fin, 45 bool fin,
48 QuicFrame* frame); 46 QuicFrame* frame);
49 static bool IsFecProtected(QuicPacketCreator* creator);
50 static bool IsFecEnabled(QuicPacketCreator* creator);
51 static void StartFecProtectingPackets(QuicPacketCreator* creator);
52 static void StopFecProtectingPackets(QuicPacketCreator* creator);
53 static void SerializeFec(QuicPacketCreator* creator,
54 char* buffer,
55 size_t buffer_len);
56 static SerializedPacket SerializeAllFrames(QuicPacketCreator* creator, 47 static SerializedPacket SerializeAllFrames(QuicPacketCreator* creator,
57 const QuicFrames& frames, 48 const QuicFrames& frames,
58 char* buffer, 49 char* buffer,
59 size_t buffer_len); 50 size_t buffer_len);
60 static void ResetFecGroup(QuicPacketCreator* creator);
61 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator);
62 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment.
63 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator);
64 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); 51 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator);
65 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); 52 static QuicPathId GetCurrentPath(QuicPacketCreator* creator);
66 53
67 private: 54 private:
68 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); 55 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer);
69 }; 56 };
70 57
71 } // namespace test 58 } // namespace test
72 59
73 } // namespace net 60 } // namespace net
74 61
75 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ 62 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | net/quic/test_tools/quic_packet_creator_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698