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