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

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

Issue 1495243002: Remove EncryptionLevel from QUIC's RetransmittableFrames and add it to TransmissionInfo. No functi… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@108735153
Patch Set: Created 5 years 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 "net/quic/quic_protocol.h" 8 #include "net/quic/quic_protocol.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 21 matching lines...) Expand all
32 static void FillPacketHeader(QuicPacketCreator* creator, 32 static void FillPacketHeader(QuicPacketCreator* creator,
33 QuicFecGroupNumber fec_group, 33 QuicFecGroupNumber fec_group,
34 bool fec_flag, 34 bool fec_flag,
35 QuicPacketHeader* header); 35 QuicPacketHeader* header);
36 static size_t CreateStreamFrame(QuicPacketCreator* creator, 36 static size_t CreateStreamFrame(QuicPacketCreator* creator,
37 QuicStreamId id, 37 QuicStreamId id,
38 QuicIOVector iov, 38 QuicIOVector iov,
39 size_t iov_offset, 39 size_t iov_offset,
40 QuicStreamOffset offset, 40 QuicStreamOffset offset,
41 bool fin, 41 bool fin,
42 QuicFrame* frame, 42 QuicFrame* frame);
43 UniqueStreamBuffer* buffer);
44 static bool IsFecProtected(QuicPacketCreator* creator); 43 static bool IsFecProtected(QuicPacketCreator* creator);
45 static bool IsFecEnabled(QuicPacketCreator* creator); 44 static bool IsFecEnabled(QuicPacketCreator* creator);
46 static void StartFecProtectingPackets(QuicPacketCreator* creator); 45 static void StartFecProtectingPackets(QuicPacketCreator* creator);
47 static void StopFecProtectingPackets(QuicPacketCreator* creator); 46 static void StopFecProtectingPackets(QuicPacketCreator* creator);
48 static SerializedPacket SerializeFec(QuicPacketCreator* creator, 47 static SerializedPacket SerializeFec(QuicPacketCreator* creator,
49 char* buffer, 48 char* buffer,
50 size_t buffer_len); 49 size_t buffer_len);
51 static void ResetFecGroup(QuicPacketCreator* creator); 50 static void ResetFecGroup(QuicPacketCreator* creator);
52 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); 51 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator);
53 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment. 52 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment.
54 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); 53 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator);
55 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); 54 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator);
56 55
57 private: 56 private:
58 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); 57 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer);
59 }; 58 };
60 59
61 } // namespace test 60 } // namespace test
62 61
63 } // namespace net 62 } // namespace net
64 63
65 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ 64 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.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