| 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 "net/spdy/spdy_framer.h" | 7 #include "net/spdy/spdy_framer.h" |
| 8 #include "net/tools/quic/quic_client_session.h" | 8 #include "net/tools/quic/quic_client_session.h" |
| 9 #include "net/tools/quic/spdy_utils.h" | 9 #include "net/tools/quic/spdy_utils.h" |
| 10 | 10 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 size_t delta = read_buf_len - len; | 113 size_t delta = read_buf_len - len; |
| 114 if (delta > 0) { | 114 if (delta > 0) { |
| 115 data_.append(data + len, delta); | 115 data_.append(data + len, delta); |
| 116 } | 116 } |
| 117 | 117 |
| 118 return len; | 118 return len; |
| 119 } | 119 } |
| 120 | 120 |
| 121 void QuicSpdyClientStream::SendBody(const string& data, bool fin) { | 121 void QuicSpdyClientStream::SendBody(const string& data, bool fin) { |
| 122 WriteOrBufferData(data, fin, nullptr); | 122 SendBody(data, fin, nullptr); |
| 123 } |
| 124 |
| 125 void QuicSpdyClientStream::SendBody( |
| 126 const string& data, |
| 127 bool fin, |
| 128 QuicAckNotifier::DelegateInterface* delegate) { |
| 129 WriteOrBufferData(data, fin, delegate); |
| 123 } | 130 } |
| 124 | 131 |
| 125 } // namespace tools | 132 } // namespace tools |
| 126 } // namespace net | 133 } // namespace net |
| OLD | NEW |