QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright (c) 2018 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_TOOLS_QUIC_SIMPLE_CLIENT_SESSION_H_ |
| 6 | #define QUICHE_QUIC_TOOLS_QUIC_SIMPLE_CLIENT_SESSION_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/core/http/quic_spdy_client_session.h" |
| 9 | #include "net/third_party/quiche/src/quic/tools/quic_simple_client_stream.h" |
| 10 | |
| 11 | namespace quic { |
| 12 | |
| 13 | class QuicSimpleClientSession : public QuicSpdyClientSession { |
| 14 | public: |
| 15 | QuicSimpleClientSession(const QuicConfig& config, |
| 16 | const ParsedQuicVersionVector& supported_versions, |
| 17 | QuicConnection* connection, |
| 18 | const QuicServerId& server_id, |
| 19 | QuicCryptoClientConfig* crypto_config, |
| 20 | QuicClientPushPromiseIndex* push_promise_index, |
| 21 | bool drop_response_body) |
| 22 | : QuicSpdyClientSession(config, |
| 23 | supported_versions, |
| 24 | connection, |
| 25 | server_id, |
| 26 | crypto_config, |
| 27 | push_promise_index), |
| 28 | drop_response_body_(drop_response_body) {} |
| 29 | |
| 30 | std::unique_ptr<QuicSpdyClientStream> CreateClientStream() override; |
| 31 | |
| 32 | private: |
| 33 | const bool drop_response_body_; |
| 34 | }; |
| 35 | |
| 36 | } // namespace quic |
| 37 | |
| 38 | #endif // QUICHE_QUIC_TOOLS_QUIC_SIMPLE_CLIENT_SESSION_H_ |