blob: 38ff4fce34305c9cc23014626a3d69a550fb7239 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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
bnc463f2352019-10-10 04:49:34 -07007#include <utility>
QUICHE teama6ef0a62019-03-07 20:34:33 -05008
9namespace quic {
10
bnc331385e2019-09-11 05:02:16 -070011QuicSimpleClientSession::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),
rch4e7e60f2019-10-16 07:24:00 -070025 drop_response_body_(drop_response_body) {}
bnc331385e2019-09-11 05:02:16 -070026
QUICHE teama6ef0a62019-03-07 20:34:33 -050027std::unique_ptr<QuicSpdyClientStream>
28QuicSimpleClientSession::CreateClientStream() {
vasilvv0fc587f2019-09-06 13:33:08 -070029 return std::make_unique<QuicSimpleClientStream>(
QUICHE teama6ef0a62019-03-07 20:34:33 -050030 GetNextOutgoingBidirectionalStreamId(), this, BIDIRECTIONAL,
31 drop_response_body_);
32}
33
34} // namespace quic