| 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 "base/logging.h" |
| 8 #include "net/quic/iovector.h" | 8 #include "net/quic/iovector.h" |
| 9 #include "net/quic/quic_ack_listener_interface.h" | 9 #include "net/quic/quic_ack_listener_interface.h" |
| 10 #include "net/quic/quic_flags.h" | 10 #include "net/quic/quic_flags.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 ReliableQuicStream::PendingData::PendingData( | 128 ReliableQuicStream::PendingData::PendingData( |
| 129 string data_in, | 129 string data_in, |
| 130 scoped_refptr<ProxyAckNotifierDelegate> delegate_in) | 130 scoped_refptr<ProxyAckNotifierDelegate> delegate_in) |
| 131 : data(data_in), offset(0), delegate(delegate_in) { | 131 : data(data_in), offset(0), delegate(delegate_in) { |
| 132 } | 132 } |
| 133 | 133 |
| 134 ReliableQuicStream::PendingData::~PendingData() { | 134 ReliableQuicStream::PendingData::~PendingData() { |
| 135 } | 135 } |
| 136 | 136 |
| 137 ReliableQuicStream::ReliableQuicStream(QuicStreamId id, QuicSession* session) | 137 ReliableQuicStream::ReliableQuicStream(QuicStreamId id, QuicSession* session) |
| 138 : sequencer_(this), | 138 : sequencer_(this, session->connection()->clock()), |
| 139 id_(id), | 139 id_(id), |
| 140 session_(session), | 140 session_(session), |
| 141 stream_bytes_read_(0), | 141 stream_bytes_read_(0), |
| 142 stream_bytes_written_(0), | 142 stream_bytes_written_(0), |
| 143 stream_error_(QUIC_STREAM_NO_ERROR), | 143 stream_error_(QUIC_STREAM_NO_ERROR), |
| 144 connection_error_(QUIC_NO_ERROR), | 144 connection_error_(QUIC_NO_ERROR), |
| 145 read_side_closed_(false), | 145 read_side_closed_(false), |
| 146 write_side_closed_(false), | 146 write_side_closed_(false), |
| 147 fin_buffered_(false), | 147 fin_buffered_(false), |
| 148 fin_sent_(false), | 148 fin_sent_(false), |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 } | 551 } |
| 552 } | 552 } |
| 553 | 553 |
| 554 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) { | 554 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) { |
| 555 if (flow_controller_.UpdateSendWindowOffset(new_window)) { | 555 if (flow_controller_.UpdateSendWindowOffset(new_window)) { |
| 556 OnCanWrite(); | 556 OnCanWrite(); |
| 557 } | 557 } |
| 558 } | 558 } |
| 559 | 559 |
| 560 } // namespace net | 560 } // namespace net |
| OLD | NEW |