| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 static QuicSequenceNumberLength GetMinSequenceNumberLength( | 366 static QuicSequenceNumberLength GetMinSequenceNumberLength( |
| 367 QuicPacketSequenceNumber sequence_number); | 367 QuicPacketSequenceNumber sequence_number); |
| 368 | 368 |
| 369 void SetSupportedVersions(const QuicVersionVector& versions) { | 369 void SetSupportedVersions(const QuicVersionVector& versions) { |
| 370 supported_versions_ = versions; | 370 supported_versions_ = versions; |
| 371 quic_version_ = versions[0]; | 371 quic_version_ = versions[0]; |
| 372 } | 372 } |
| 373 | 373 |
| 374 void set_validate_flags(bool value) { validate_flags_ = value; } | 374 void set_validate_flags(bool value) { validate_flags_ = value; } |
| 375 | 375 |
| 376 bool is_server() const { return is_server_; } |
| 377 |
| 376 private: | 378 private: |
| 377 friend class test::QuicFramerPeer; | 379 friend class test::QuicFramerPeer; |
| 378 | 380 |
| 379 typedef std::map<QuicPacketSequenceNumber, uint8> NackRangeMap; | 381 typedef std::map<QuicPacketSequenceNumber, uint8> NackRangeMap; |
| 380 | 382 |
| 381 struct AckFrameInfo { | 383 struct AckFrameInfo { |
| 382 AckFrameInfo(); | 384 AckFrameInfo(); |
| 383 ~AckFrameInfo(); | 385 ~AckFrameInfo(); |
| 384 | 386 |
| 385 // The maximum delta between ranges. | 387 // The maximum delta between ranges. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 // The time this frames was created. Time written to the wire will be | 532 // The time this frames was created. Time written to the wire will be |
| 531 // written as a delta from this value. | 533 // written as a delta from this value. |
| 532 QuicTime creation_time_; | 534 QuicTime creation_time_; |
| 533 | 535 |
| 534 DISALLOW_COPY_AND_ASSIGN(QuicFramer); | 536 DISALLOW_COPY_AND_ASSIGN(QuicFramer); |
| 535 }; | 537 }; |
| 536 | 538 |
| 537 } // namespace net | 539 } // namespace net |
| 538 | 540 |
| 539 #endif // NET_QUIC_QUIC_FRAMER_H_ | 541 #endif // NET_QUIC_QUIC_FRAMER_H_ |
| OLD | NEW |