| 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_FRAMER_H_ | 5 #ifndef NET_QUIC_QUIC_FRAMER_H_ |
| 6 #define NET_QUIC_QUIC_FRAMER_H_ | 6 #define NET_QUIC_QUIC_FRAMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 bool ProcessRevivedPacket(QuicPacketHeader* header, | 236 bool ProcessRevivedPacket(QuicPacketHeader* header, |
| 237 base::StringPiece payload); | 237 base::StringPiece payload); |
| 238 | 238 |
| 239 // Largest size in bytes of all stream frame fields without the payload. | 239 // Largest size in bytes of all stream frame fields without the payload. |
| 240 static size_t GetMinStreamFrameSize(QuicStreamId stream_id, | 240 static size_t GetMinStreamFrameSize(QuicStreamId stream_id, |
| 241 QuicStreamOffset offset, | 241 QuicStreamOffset offset, |
| 242 bool last_frame_in_packet, | 242 bool last_frame_in_packet, |
| 243 InFecGroup is_in_fec_group); | 243 InFecGroup is_in_fec_group); |
| 244 // Size in bytes of all ack frame fields without the missing packets. | 244 // Size in bytes of all ack frame fields without the missing packets. |
| 245 static size_t GetMinAckFrameSize( | 245 static size_t GetMinAckFrameSize( |
| 246 QuicSequenceNumberLength sequence_number_length, | |
| 247 QuicSequenceNumberLength largest_observed_length); | 246 QuicSequenceNumberLength largest_observed_length); |
| 248 // Size in bytes of a stop waiting frame. | 247 // Size in bytes of a stop waiting frame. |
| 249 static size_t GetStopWaitingFrameSize( | 248 static size_t GetStopWaitingFrameSize( |
| 250 QuicSequenceNumberLength sequence_number_length); | 249 QuicSequenceNumberLength sequence_number_length); |
| 251 // Size in bytes of all reset stream frame without the error details. | 250 // Size in bytes of all reset stream frame without the error details. |
| 252 // Used before QUIC_VERSION_25. | 251 // Used before QUIC_VERSION_25. |
| 253 static size_t GetMinRstStreamFrameSize(); | 252 static size_t GetMinRstStreamFrameSize(); |
| 254 // Size in bytes of all reset stream frame fields. | 253 // Size in bytes of all reset stream frame fields. |
| 255 static size_t GetRstStreamFrameSize(); | 254 static size_t GetRstStreamFrameSize(); |
| 256 // Size in bytes of all connection close frame fields without the error | 255 // Size in bytes of all connection close frame fields without the error |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 // The time delta computed for the last timestamp frame. This is relative to | 530 // The time delta computed for the last timestamp frame. This is relative to |
| 532 // the creation_time. | 531 // the creation_time. |
| 533 QuicTime::Delta last_timestamp_; | 532 QuicTime::Delta last_timestamp_; |
| 534 | 533 |
| 535 DISALLOW_COPY_AND_ASSIGN(QuicFramer); | 534 DISALLOW_COPY_AND_ASSIGN(QuicFramer); |
| 536 }; | 535 }; |
| 537 | 536 |
| 538 } // namespace net | 537 } // namespace net |
| 539 | 538 |
| 540 #endif // NET_QUIC_QUIC_FRAMER_H_ | 539 #endif // NET_QUIC_QUIC_FRAMER_H_ |
| OLD | NEW |