| 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/quic_alarm.h" | 12 #include "net/quic/core/quic_alarm.h" |
| 13 #include "net/quic/quic_client_promised_info.h" | 13 #include "net/quic/core/quic_client_promised_info.h" |
| 14 #include "net/quic/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" | 17 #include "net/tools/quic/spdy_balsa_utils.h" |
| 18 | 18 |
| 19 using base::StringPiece; | 19 using base::StringPiece; |
| 20 using std::string; | 20 using std::string; |
| 21 using base::StringToInt; | 21 using base::StringToInt; |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 bytes_sent += header_bytes_written_; | 192 bytes_sent += header_bytes_written_; |
| 193 | 193 |
| 194 if (!body.empty()) { | 194 if (!body.empty()) { |
| 195 WriteOrBufferData(body, fin, nullptr); | 195 WriteOrBufferData(body, fin, nullptr); |
| 196 } | 196 } |
| 197 | 197 |
| 198 return bytes_sent; | 198 return bytes_sent; |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace net | 201 } // namespace net |
| OLD | NEW |