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 | #include "net/third_party/quiche/src/quic/tools/quic_simple_client_session.h" |
| 6 | |
bnc | 463f235 | 2019-10-10 04:49:34 -0700 | [diff] [blame] | 7 | #include <utility> |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 8 | |
| 9 | namespace quic { |
| 10 | |
bnc | 331385e | 2019-09-11 05:02:16 -0700 | [diff] [blame] | 11 | QuicSimpleClientSession::QuicSimpleClientSession( |
| 12 | const QuicConfig& config, |
| 13 | const ParsedQuicVersionVector& supported_versions, |
| 14 | QuicConnection* connection, |
| 15 | const QuicServerId& server_id, |
| 16 | QuicCryptoClientConfig* crypto_config, |
| 17 | QuicClientPushPromiseIndex* push_promise_index, |
| 18 | bool drop_response_body) |
| 19 | : QuicSpdyClientSession(config, |
| 20 | supported_versions, |
| 21 | connection, |
| 22 | server_id, |
| 23 | crypto_config, |
| 24 | push_promise_index), |
rch | 4e7e60f | 2019-10-16 07:24:00 -0700 | [diff] [blame] | 25 | drop_response_body_(drop_response_body) {} |
bnc | 331385e | 2019-09-11 05:02:16 -0700 | [diff] [blame] | 26 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 27 | std::unique_ptr<QuicSpdyClientStream> |
| 28 | QuicSimpleClientSession::CreateClientStream() { |
vasilvv | 0fc587f | 2019-09-06 13:33:08 -0700 | [diff] [blame] | 29 | return std::make_unique<QuicSimpleClientStream>( |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 30 | GetNextOutgoingBidirectionalStreamId(), this, BIDIRECTIONAL, |
| 31 | drop_response_body_); |
| 32 | } |
| 33 | |
| 34 | } // namespace quic |