| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Number of bytes reserved to store payload length in stream frame. | 40 // Number of bytes reserved to store payload length in stream frame. |
| 41 const size_t kQuicStreamPayloadLengthSize = 2; | 41 const size_t kQuicStreamPayloadLengthSize = 2; |
| 42 | 42 |
| 43 // Size in bytes of the entropy hash sent in ack frames. | 43 // Size in bytes of the entropy hash sent in ack frames. |
| 44 const size_t kQuicEntropyHashSize = 1; | 44 const size_t kQuicEntropyHashSize = 1; |
| 45 // Size in bytes reserved for the delta time of the largest observed | 45 // Size in bytes reserved for the delta time of the largest observed |
| 46 // sequence number in ack frames. | 46 // sequence number in ack frames. |
| 47 const size_t kQuicDeltaTimeLargestObservedSize = 2; | 47 const size_t kQuicDeltaTimeLargestObservedSize = 2; |
| 48 // Size in bytes reserved for the number of missing packets in ack frames. | 48 // Size in bytes reserved for the number of missing packets in ack frames. |
| 49 const size_t kNumberOfMissingPacketsSize = 1; | 49 const size_t kNumberOfMissingPacketsSize = 1; |
| 50 // Size in bytes reserved for the number of revived packets in ack frames. |
| 51 const size_t kNumberOfRevivedPacketsSize = 1; |
| 50 | 52 |
| 51 // This class receives callbacks from the framer when packets | 53 // This class receives callbacks from the framer when packets |
| 52 // are processed. | 54 // are processed. |
| 53 class NET_EXPORT_PRIVATE QuicFramerVisitorInterface { | 55 class NET_EXPORT_PRIVATE QuicFramerVisitorInterface { |
| 54 public: | 56 public: |
| 55 virtual ~QuicFramerVisitorInterface() {} | 57 virtual ~QuicFramerVisitorInterface() {} |
| 56 | 58 |
| 57 // Called if an error is detected in the QUIC protocol. | 59 // Called if an error is detected in the QUIC protocol. |
| 58 virtual void OnError(QuicFramer* framer) = 0; | 60 virtual void OnError(QuicFramer* framer) = 0; |
| 59 | 61 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 // The time this frames was created. Time written to the wire will be | 512 // The time this frames was created. Time written to the wire will be |
| 511 // written as a delta from this value. | 513 // written as a delta from this value. |
| 512 QuicTime creation_time_; | 514 QuicTime creation_time_; |
| 513 | 515 |
| 514 DISALLOW_COPY_AND_ASSIGN(QuicFramer); | 516 DISALLOW_COPY_AND_ASSIGN(QuicFramer); |
| 515 }; | 517 }; |
| 516 | 518 |
| 517 } // namespace net | 519 } // namespace net |
| 518 | 520 |
| 519 #endif // NET_QUIC_QUIC_FRAMER_H_ | 521 #endif // NET_QUIC_QUIC_FRAMER_H_ |
| OLD | NEW |