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 "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "net/quic/core/quic_alarm.h" | 12 #include "net/quic/core/quic_alarm.h" |
13 #include "net/quic/core/quic_client_promised_info.h" | 13 #include "net/quic/core/quic_client_promised_info.h" |
14 #include "net/quic/core/spdy_utils.h" | 14 #include "net/quic/core/spdy_utils.h" |
15 #include "net/spdy/spdy_protocol.h" | 15 #include "net/spdy/spdy_protocol.h" |
16 #include "net/tools/quic/quic_client_session.h" | 16 #include "net/tools/quic/quic_client_session.h" |
17 #include "net/tools/quic/spdy_balsa_utils.h" | |
18 | 17 |
19 using base::StringPiece; | 18 using base::StringPiece; |
20 using std::string; | 19 using std::string; |
21 using base::StringToInt; | 20 using base::StringToInt; |
22 | 21 |
23 namespace net { | 22 namespace net { |
24 | 23 |
25 QuicSpdyClientStream::QuicSpdyClientStream(QuicStreamId id, | 24 QuicSpdyClientStream::QuicSpdyClientStream(QuicStreamId id, |
26 QuicClientSession* session) | 25 QuicClientSession* session) |
27 : QuicSpdyStream(id, session), | 26 : QuicSpdyStream(id, session), |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bytes_sent += header_bytes_written_; | 140 bytes_sent += header_bytes_written_; |
142 | 141 |
143 if (!body.empty()) { | 142 if (!body.empty()) { |
144 WriteOrBufferData(body, fin, nullptr); | 143 WriteOrBufferData(body, fin, nullptr); |
145 } | 144 } |
146 | 145 |
147 return bytes_sent; | 146 return bytes_sent; |
148 } | 147 } |
149 | 148 |
150 } // namespace net | 149 } // namespace net |
OLD | NEW |