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 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 public: | 1414 public: |
1415 explicit QuicVersionManager(QuicVersionVector supported_versions); | 1415 explicit QuicVersionManager(QuicVersionVector supported_versions); |
1416 ~QuicVersionManager(); | 1416 ~QuicVersionManager(); |
1417 | 1417 |
1418 // Returns supported versions based on flags. | 1418 // Returns supported versions based on flags. |
1419 const QuicVersionVector& GetSupportedVersions(); | 1419 const QuicVersionVector& GetSupportedVersions(); |
1420 | 1420 |
1421 private: | 1421 private: |
1422 // FLAGS_quic_enable_version_35 | 1422 // FLAGS_quic_enable_version_35 |
1423 bool enable_quic_version_35_; | 1423 bool enable_quic_version_35_; |
1424 // FLAGS_quic_enable_version_36 | 1424 // FLAGS_quic_enable_version_36_v2 |
1425 bool enable_quic_version_36_; | 1425 bool enable_quic_version_36_; |
1426 // The list of versions that may be supported. | 1426 // The list of versions that may be supported. |
1427 QuicVersionVector allowed_supported_versions_; | 1427 QuicVersionVector allowed_supported_versions_; |
1428 // This vector contains QUIC versions which are currently supported based | 1428 // This vector contains QUIC versions which are currently supported based |
1429 // on flags. | 1429 // on flags. |
1430 QuicVersionVector filtered_supported_versions_; | 1430 QuicVersionVector filtered_supported_versions_; |
1431 }; | 1431 }; |
1432 | 1432 |
1433 struct NET_EXPORT_PRIVATE AckListenerWrapper { | 1433 struct NET_EXPORT_PRIVATE AckListenerWrapper { |
1434 AckListenerWrapper(QuicAckListenerInterface* listener, | 1434 AckListenerWrapper(QuicAckListenerInterface* listener, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1554 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1554 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1555 | 1555 |
1556 const struct iovec* iov; | 1556 const struct iovec* iov; |
1557 const int iov_count; | 1557 const int iov_count; |
1558 const size_t total_length; | 1558 const size_t total_length; |
1559 }; | 1559 }; |
1560 | 1560 |
1561 } // namespace net | 1561 } // namespace net |
1562 | 1562 |
1563 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1563 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |