| 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_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 <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 // Used to generate filtered supported versions based on flags. | 615 // Used to generate filtered supported versions based on flags. |
| 616 class NET_EXPORT_PRIVATE QuicVersionManager { | 616 class NET_EXPORT_PRIVATE QuicVersionManager { |
| 617 public: | 617 public: |
| 618 explicit QuicVersionManager(QuicVersionVector supported_versions); | 618 explicit QuicVersionManager(QuicVersionVector supported_versions); |
| 619 ~QuicVersionManager(); | 619 ~QuicVersionManager(); |
| 620 | 620 |
| 621 // Returns supported versions based on flags. | 621 // Returns supported versions based on flags. |
| 622 const QuicVersionVector& GetSupportedVersions(); | 622 const QuicVersionVector& GetSupportedVersions(); |
| 623 | 623 |
| 624 private: | 624 private: |
| 625 // FLAGS_quic_enable_version_36_v2 | 625 // FLAGS_quic_enable_version_36_v3 |
| 626 bool enable_version_36_; | 626 bool enable_version_36_; |
| 627 // The list of versions that may be supported. | 627 // The list of versions that may be supported. |
| 628 QuicVersionVector allowed_supported_versions_; | 628 QuicVersionVector allowed_supported_versions_; |
| 629 // This vector contains QUIC versions which are currently supported based | 629 // This vector contains QUIC versions which are currently supported based |
| 630 // on flags. | 630 // on flags. |
| 631 QuicVersionVector filtered_supported_versions_; | 631 QuicVersionVector filtered_supported_versions_; |
| 632 }; | 632 }; |
| 633 | 633 |
| 634 struct NET_EXPORT_PRIVATE AckListenerWrapper { | 634 struct NET_EXPORT_PRIVATE AckListenerWrapper { |
| 635 AckListenerWrapper(QuicAckListenerInterface* listener, | 635 AckListenerWrapper(QuicAckListenerInterface* listener, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 QuicPathId path_id; | 742 QuicPathId path_id; |
| 743 bool has_crypto_handshake; | 743 bool has_crypto_handshake; |
| 744 int num_padding_bytes; | 744 int num_padding_bytes; |
| 745 EncryptionLevel encryption_level; | 745 EncryptionLevel encryption_level; |
| 746 QuicPacketNumberLength packet_number_length; | 746 QuicPacketNumberLength packet_number_length; |
| 747 }; | 747 }; |
| 748 | 748 |
| 749 } // namespace net | 749 } // namespace net |
| 750 | 750 |
| 751 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 751 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |