dschinazi | 996131b | 2019-12-13 11:36:16 -0800 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_QUIC_MASQUE_MASQUE_UTILS_H_ |
| 6 | #define QUICHE_QUIC_MASQUE_MASQUE_UTILS_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/core/quic_config.h" |
| 9 | #include "net/third_party/quiche/src/quic/core/quic_types.h" |
| 10 | #include "net/third_party/quiche/src/quic/core/quic_versions.h" |
| 11 | |
| 12 | namespace quic { |
| 13 | |
| 14 | // List of QUIC versions that support MASQUE. Currently restricted to IETF QUIC. |
| 15 | QUIC_NO_EXPORT ParsedQuicVersionVector MasqueSupportedVersions(); |
| 16 | |
| 17 | // Default QuicConfig for use with MASQUE. Sets a custom max_packet_size. |
| 18 | QUIC_NO_EXPORT QuicConfig MasqueEncapsulatedConfig(); |
| 19 | |
| 20 | // Maximum packet size for encapsulated connections. |
| 21 | const QuicByteCount kMasqueMaxEncapsulatedPacketSize = 1300; |
| 22 | |
| 23 | } // namespace quic |
| 24 | |
| 25 | #endif // QUICHE_QUIC_MASQUE_MASQUE_UTILS_H_ |