OLD | NEW |
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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 #include <list> | 10 #include <list> |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 public: | 971 public: |
972 explicit RetransmittableFrames(EncryptionLevel level); | 972 explicit RetransmittableFrames(EncryptionLevel level); |
973 ~RetransmittableFrames(); | 973 ~RetransmittableFrames(); |
974 | 974 |
975 // Allocates a local copy of the referenced StringPiece has QuicStreamFrame | 975 // Allocates a local copy of the referenced StringPiece has QuicStreamFrame |
976 // use it. | 976 // use it. |
977 // Takes ownership of |stream_frame|. | 977 // Takes ownership of |stream_frame|. |
978 const QuicFrame& AddStreamFrame(QuicStreamFrame* stream_frame); | 978 const QuicFrame& AddStreamFrame(QuicStreamFrame* stream_frame); |
979 // Takes ownership of the frame inside |frame|. | 979 // Takes ownership of the frame inside |frame|. |
980 const QuicFrame& AddNonStreamFrame(const QuicFrame& frame); | 980 const QuicFrame& AddNonStreamFrame(const QuicFrame& frame); |
| 981 // Removes all stream frames associated with |stream_id|. |
| 982 void RemoveFramesForStream(QuicStreamId stream_id); |
| 983 |
981 const QuicFrames& frames() const { return frames_; } | 984 const QuicFrames& frames() const { return frames_; } |
982 | 985 |
983 IsHandshake HasCryptoHandshake() const { | 986 IsHandshake HasCryptoHandshake() const { |
984 return has_crypto_handshake_; | 987 return has_crypto_handshake_; |
985 } | 988 } |
986 | 989 |
987 EncryptionLevel encryption_level() const { | 990 EncryptionLevel encryption_level() const { |
988 return encryption_level_; | 991 return encryption_level_; |
989 } | 992 } |
990 | 993 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 bool in_flight; | 1047 bool in_flight; |
1045 // True if the packet can never be acked, so it can be removed. | 1048 // True if the packet can never be acked, so it can be removed. |
1046 bool is_unackable; | 1049 bool is_unackable; |
1047 // True if the packet is an FEC packet. | 1050 // True if the packet is an FEC packet. |
1048 bool is_fec_packet; | 1051 bool is_fec_packet; |
1049 }; | 1052 }; |
1050 | 1053 |
1051 } // namespace net | 1054 } // namespace net |
1052 | 1055 |
1053 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1056 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |