| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 bool last_frame_in_packet); | 226 bool last_frame_in_packet); |
| 227 // Size in bytes of all ack frame fields without the missing packets or ack | 227 // Size in bytes of all ack frame fields without the missing packets or ack |
| 228 // blocks. | 228 // blocks. |
| 229 static size_t GetMinAckFrameSize( | 229 static size_t GetMinAckFrameSize( |
| 230 QuicVersion version, | 230 QuicVersion version, |
| 231 QuicPacketNumberLength largest_observed_length); | 231 QuicPacketNumberLength largest_observed_length); |
| 232 // Size in bytes of a stop waiting frame. | 232 // Size in bytes of a stop waiting frame. |
| 233 static size_t GetStopWaitingFrameSize( | 233 static size_t GetStopWaitingFrameSize( |
| 234 QuicVersion version, | 234 QuicVersion version, |
| 235 QuicPacketNumberLength packet_number_length); | 235 QuicPacketNumberLength packet_number_length); |
| 236 // Size in bytes of all reset stream frame without the error details. | |
| 237 // Used before QUIC_VERSION_25. | |
| 238 static size_t GetMinRstStreamFrameSize(); | |
| 239 // Size in bytes of all reset stream frame fields. | 236 // Size in bytes of all reset stream frame fields. |
| 240 static size_t GetRstStreamFrameSize(); | 237 static size_t GetRstStreamFrameSize(); |
| 241 // Size in bytes of all connection close frame fields without the error | 238 // Size in bytes of all connection close frame fields without the error |
| 242 // details and the missing packets from the enclosed ack frame. | 239 // details and the missing packets from the enclosed ack frame. |
| 243 static size_t GetMinConnectionCloseFrameSize(); | 240 static size_t GetMinConnectionCloseFrameSize(); |
| 244 // Size in bytes of all GoAway frame fields without the reason phrase. | 241 // Size in bytes of all GoAway frame fields without the reason phrase. |
| 245 static size_t GetMinGoAwayFrameSize(); | 242 static size_t GetMinGoAwayFrameSize(); |
| 246 // Size in bytes of all WindowUpdate frame fields. | 243 // Size in bytes of all WindowUpdate frame fields. |
| 247 static size_t GetWindowUpdateFrameSize(); | 244 static size_t GetWindowUpdateFrameSize(); |
| 248 // Size in bytes of all Blocked frame fields. | 245 // Size in bytes of all Blocked frame fields. |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 QuicTime::Delta last_timestamp_; | 605 QuicTime::Delta last_timestamp_; |
| 609 // The diversification nonce from the last received packet. | 606 // The diversification nonce from the last received packet. |
| 610 DiversificationNonce last_nonce_; | 607 DiversificationNonce last_nonce_; |
| 611 | 608 |
| 612 DISALLOW_COPY_AND_ASSIGN(QuicFramer); | 609 DISALLOW_COPY_AND_ASSIGN(QuicFramer); |
| 613 }; | 610 }; |
| 614 | 611 |
| 615 } // namespace net | 612 } // namespace net |
| 616 | 613 |
| 617 #endif // NET_QUIC_QUIC_FRAMER_H_ | 614 #endif // NET_QUIC_QUIC_FRAMER_H_ |
| OLD | NEW |