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

Side by Side Diff: net/quic/quic_fec_group.h

Issue 1413443005: Remove QuicFecGroup::MinProtectedPacket which is no longer needed. No behavior change expected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@105506241
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | net/quic/quic_fec_group.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Tracks information about an FEC group, including the packets 5 // Tracks information about an FEC group, including the packets
6 // that have been seen, and the running parity. Provides the ability 6 // that have been seen, and the running parity. Provides the ability
7 // to revive a dropped packet. 7 // to revive a dropped packet.
8 8
9 #ifndef NET_QUIC_QUIC_FEC_GROUP_H_ 9 #ifndef NET_QUIC_QUIC_FEC_GROUP_H_
10 #define NET_QUIC_QUIC_FEC_GROUP_H_ 10 #define NET_QUIC_QUIC_FEC_GROUP_H_
(...skipping 18 matching lines...) Expand all
29 bool UpdateFec(EncryptionLevel encryption_level, 29 bool UpdateFec(EncryptionLevel encryption_level,
30 const QuicPacketHeader& header, 30 const QuicPacketHeader& header,
31 base::StringPiece redundancy) override; 31 base::StringPiece redundancy) override;
32 bool CanRevive() const override; 32 bool CanRevive() const override;
33 bool IsFinished() const override; 33 bool IsFinished() const override;
34 size_t Revive(QuicPacketHeader* header, 34 size_t Revive(QuicPacketHeader* header,
35 char* decrypted_payload, 35 char* decrypted_payload,
36 size_t decrypted_payload_len) override; 36 size_t decrypted_payload_len) override;
37 bool IsWaitingForPacketBefore(QuicPacketNumber num) const override; 37 bool IsWaitingForPacketBefore(QuicPacketNumber num) const override;
38 const base::StringPiece PayloadParity() const override; 38 const base::StringPiece PayloadParity() const override;
39 QuicPacketNumber MinProtectedPacket() const override;
40 QuicPacketCount NumReceivedPackets() const override; 39 QuicPacketCount NumReceivedPackets() const override;
41 EncryptionLevel EffectiveEncryptionLevel() const override; 40 EncryptionLevel EffectiveEncryptionLevel() const override;
42 41
43 private: 42 private:
44 bool UpdateParity(base::StringPiece payload); 43 bool UpdateParity(base::StringPiece payload);
45 // Returns the number of missing packets, or QuicPacketCount max 44 // Returns the number of missing packets, or QuicPacketCount max
46 // if the number of missing packets is not known. 45 // if the number of missing packets is not known.
47 QuicPacketCount NumMissingPackets() const; 46 QuicPacketCount NumMissingPackets() const;
48 47
49 bool has_received_fec_packet() const { 48 bool has_received_fec_packet() const {
(...skipping 16 matching lines...) Expand all
66 // The effective encryption level, which is the lowest encryption level of 65 // The effective encryption level, which is the lowest encryption level of
67 // the data and FEC in the group. 66 // the data and FEC in the group.
68 EncryptionLevel effective_encryption_level_; 67 EncryptionLevel effective_encryption_level_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(QuicFecGroup); 69 DISALLOW_COPY_AND_ASSIGN(QuicFecGroup);
71 }; 70 };
72 71
73 } // namespace net 72 } // namespace net
74 73
75 #endif // NET_QUIC_QUIC_FEC_GROUP_H_ 74 #endif // NET_QUIC_QUIC_FEC_GROUP_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_fec_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698