| 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/stl_util.h" | |
| 10 #include "net/quic/core/quic_alarm.h" | 9 #include "net/quic/core/quic_alarm.h" |
| 11 #include "net/quic/core/quic_client_promised_info.h" | 10 #include "net/quic/core/quic_client_promised_info.h" |
| 12 #include "net/quic/core/spdy_utils.h" | 11 #include "net/quic/core/spdy_utils.h" |
| 13 #include "net/quic/platform/api/quic_logging.h" | 12 #include "net/quic/platform/api/quic_logging.h" |
| 14 #include "net/spdy/spdy_protocol.h" | 13 #include "net/spdy/spdy_protocol.h" |
| 15 #include "net/tools/quic/quic_client_session.h" | 14 #include "net/tools/quic/quic_client_session.h" |
| 16 | 15 |
| 17 using base::StringPiece; | 16 using base::StringPiece; |
| 18 using std::string; | 17 using std::string; |
| 19 | 18 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bytes_sent += header_bytes_written_; | 150 bytes_sent += header_bytes_written_; |
| 152 | 151 |
| 153 if (!body.empty()) { | 152 if (!body.empty()) { |
| 154 WriteOrBufferData(body, fin, nullptr); | 153 WriteOrBufferData(body, fin, nullptr); |
| 155 } | 154 } |
| 156 | 155 |
| 157 return bytes_sent; | 156 return bytes_sent; |
| 158 } | 157 } |
| 159 | 158 |
| 160 } // namespace net | 159 } // namespace net |
| OLD | NEW |