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_STREAM_H_ |
| 6 | #define QUICHE_QUIC_TOOLS_QUIC_SIMPLE_CLIENT_STREAM_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/core/http/quic_spdy_client_stream.h" |
| 9 | |
| 10 | namespace quic { |
| 11 | |
| 12 | class QuicSimpleClientStream : public QuicSpdyClientStream { |
| 13 | public: |
| 14 | QuicSimpleClientStream(QuicStreamId id, |
| 15 | QuicSpdyClientSession* session, |
| 16 | StreamType type, |
| 17 | bool drop_response_body) |
| 18 | : QuicSpdyClientStream(id, session, type), |
renjietang | e5c1238 | 2019-11-07 10:13:14 -0800 | [diff] [blame] | 19 | drop_response_body_(drop_response_body) {} |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 20 | void OnBodyAvailable() override; |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 21 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 22 | private: |
| 23 | const bool drop_response_body_; |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | } // namespace quic |
| 27 | |
| 28 | #endif // QUICHE_QUIC_TOOLS_QUIC_SIMPLE_CLIENT_STREAM_H_ |