OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/tools/quic/quic_spdy_client_stream.h" | 5 #include "net/tools/quic/quic_spdy_client_stream.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "net/quic/core/quic_alarm.h" | 9 #include "net/quic/core/quic_alarm.h" |
10 #include "net/quic/core/quic_client_promised_info.h" | 10 #include "net/quic/core/quic_client_promised_info.h" |
11 #include "net/quic/core/spdy_utils.h" | 11 #include "net/quic/core/spdy_utils.h" |
12 #include "net/quic/platform/api/quic_logging.h" | 12 #include "net/quic/platform/api/quic_logging.h" |
13 #include "net/spdy/spdy_protocol.h" | 13 #include "net/spdy/core/spdy_protocol.h" |
14 #include "net/tools/quic/quic_client_session.h" | 14 #include "net/tools/quic/quic_client_session.h" |
15 | 15 |
16 using std::string; | 16 using std::string; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 QuicSpdyClientStream::QuicSpdyClientStream(QuicStreamId id, | 20 QuicSpdyClientStream::QuicSpdyClientStream(QuicStreamId id, |
21 QuicClientSession* session) | 21 QuicClientSession* session) |
22 : QuicSpdyStream(id, session), | 22 : QuicSpdyStream(id, session), |
23 content_length_(-1), | 23 content_length_(-1), |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 bytes_sent += header_bytes_written_; | 148 bytes_sent += header_bytes_written_; |
149 | 149 |
150 if (!body.empty()) { | 150 if (!body.empty()) { |
151 WriteOrBufferData(body, fin, nullptr); | 151 WriteOrBufferData(body, fin, nullptr); |
152 } | 152 } |
153 | 153 |
154 return bytes_sent; | 154 return bytes_sent; |
155 } | 155 } |
156 | 156 |
157 } // namespace net | 157 } // namespace net |
OLD | NEW |