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/quic/reliable_quic_stream.h" | 5 #include "net/quic/reliable_quic_stream.h" |
6 | 6 |
| 7 #include "base/logging.h" |
7 #include "net/quic/quic_session.h" | 8 #include "net/quic/quic_session.h" |
8 #include "net/quic/quic_spdy_decompressor.h" | 9 #include "net/quic/quic_spdy_decompressor.h" |
9 #include "net/spdy/write_blocked_list.h" | 10 #include "net/spdy/write_blocked_list.h" |
10 | 11 |
11 using base::StringPiece; | 12 using base::StringPiece; |
12 using std::min; | 13 using std::min; |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 | 16 |
16 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") | 17 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 bool ReliableQuicStream::HasBufferedData() { | 217 bool ReliableQuicStream::HasBufferedData() { |
217 return !queued_data_.empty(); | 218 return !queued_data_.empty(); |
218 } | 219 } |
219 | 220 |
220 void ReliableQuicStream::OnClose() { | 221 void ReliableQuicStream::OnClose() { |
221 CloseReadSide(); | 222 CloseReadSide(); |
222 CloseWriteSide(); | 223 CloseWriteSide(); |
223 } | 224 } |
224 | 225 |
225 } // namespace net | 226 } // namespace net |
OLD | NEW |