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

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

Issue 1014433002: Land Recent QUIC Changes until 03/09/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replaces_Perspective_enun_88006458
Patch Set: Rebase - added NET_EXPORT_PRIVATE to fix compiler error Created 5 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
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_protocol.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 #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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698