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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 response_headers_received_ = true; | 111 response_headers_received_ = true; |
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 // Sends body data to the server and returns the number of bytes sent. | |
122 void QuicSpdyClientStream::SendBody(const string& data, bool fin) { | 121 void QuicSpdyClientStream::SendBody(const string& data, bool fin) { |
123 WriteOrBufferData(data, fin, nullptr); | 122 WriteOrBufferData(data, fin, nullptr); |
124 } | 123 } |
125 | 124 |
126 } // namespace tools | 125 } // namespace tools |
127 } // namespace net | 126 } // namespace net |
OLD | NEW |