diff --git a/quic/client/handshake/CachedServerTransportParameters.h b/quic/client/handshake/CachedServerTransportParameters.h new file mode 100644 index 000000000..11b6ce368 --- /dev/null +++ b/quic/client/handshake/CachedServerTransportParameters.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + +#pragma once + +#include + +#include + +namespace quic { + +struct CachedServerTransportParameters { + QuicVersion negotiatedVersion; + uint64_t idleTimeout; + uint64_t maxRecvPacketSize; + uint64_t initialMaxData; + uint64_t initialMaxStreamDataBidiLocal; + uint64_t initialMaxStreamDataBidiRemote; + uint64_t initialMaxStreamDataUni; + uint64_t initialMaxStreamsBidi; + uint64_t initialMaxStreamsUni; +}; + +} // namespace quic diff --git a/quic/client/handshake/ClientHandshake.h b/quic/client/handshake/ClientHandshake.h index 45527bae6..7ab5d8783 100644 --- a/quic/client/handshake/ClientHandshake.h +++ b/quic/client/handshake/ClientHandshake.h @@ -17,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/quic/client/handshake/QuicPskCache.h b/quic/client/handshake/QuicPskCache.h index bee2fb697..a2c6da700 100644 --- a/quic/client/handshake/QuicPskCache.h +++ b/quic/client/handshake/QuicPskCache.h @@ -8,28 +8,15 @@ #pragma once -#include +#include #include #include -#include #include namespace quic { -struct CachedServerTransportParameters { - QuicVersion negotiatedVersion; - uint64_t idleTimeout; - uint64_t maxRecvPacketSize; - uint64_t initialMaxData; - uint64_t initialMaxStreamDataBidiLocal; - uint64_t initialMaxStreamDataBidiRemote; - uint64_t initialMaxStreamDataUni; - uint64_t initialMaxStreamsBidi; - uint64_t initialMaxStreamsUni; -}; - struct QuicCachedPsk { fizz::client::CachedPsk cachedPsk; CachedServerTransportParameters transportParams; diff --git a/quic/client/state/ClientStateMachine.cpp b/quic/client/state/ClientStateMachine.cpp index 794d726e1..e83bc59b7 100644 --- a/quic/client/state/ClientStateMachine.cpp +++ b/quic/client/state/ClientStateMachine.cpp @@ -9,7 +9,6 @@ #include #include -#include #include #include #include diff --git a/quic/client/state/ClientStateMachine.h b/quic/client/state/ClientStateMachine.h index 15a6369f7..eb03a6552 100644 --- a/quic/client/state/ClientStateMachine.h +++ b/quic/client/state/ClientStateMachine.h @@ -9,6 +9,7 @@ #pragma once #include +#include #include #include #include