| 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 "base/profiler/scoped_tracker.h" | 8 #include "base/profiler/scoped_tracker.h" |
| 9 #include "net/quic/iovector.h" | 9 #include "net/quic/iovector.h" |
| 10 #include "net/quic/quic_flow_controller.h" | 10 #include "net/quic/quic_flow_controller.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 | 176 |
| 177 sequencer_.OnStreamFrame(frame); | 177 sequencer_.OnStreamFrame(frame); |
| 178 } | 178 } |
| 179 | 179 |
| 180 int ReliableQuicStream::num_frames_received() const { | 180 int ReliableQuicStream::num_frames_received() const { |
| 181 return sequencer_.num_frames_received(); | 181 return sequencer_.num_frames_received(); |
| 182 } | 182 } |
| 183 | 183 |
| 184 int ReliableQuicStream::num_early_frames_received() const { |
| 185 return sequencer_.num_early_frames_received(); |
| 186 } |
| 187 |
| 184 int ReliableQuicStream::num_duplicate_frames_received() const { | 188 int ReliableQuicStream::num_duplicate_frames_received() const { |
| 185 return sequencer_.num_duplicate_frames_received(); | 189 return sequencer_.num_duplicate_frames_received(); |
| 186 } | 190 } |
| 187 | 191 |
| 188 void ReliableQuicStream::OnStreamReset(const QuicRstStreamFrame& frame) { | 192 void ReliableQuicStream::OnStreamReset(const QuicRstStreamFrame& frame) { |
| 189 rst_received_ = true; | 193 rst_received_ = true; |
| 190 MaybeIncreaseHighestReceivedOffset(frame.byte_offset); | 194 MaybeIncreaseHighestReceivedOffset(frame.byte_offset); |
| 191 | 195 |
| 192 stream_error_ = frame.error_code; | 196 stream_error_ = frame.error_code; |
| 193 CloseWriteSide(); | 197 CloseWriteSide(); |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 | 524 |
| 521 bool ReliableQuicStream::IsFlowControlBlocked() { | 525 bool ReliableQuicStream::IsFlowControlBlocked() { |
| 522 if (flow_controller_.IsBlocked()) { | 526 if (flow_controller_.IsBlocked()) { |
| 523 return true; | 527 return true; |
| 524 } | 528 } |
| 525 return stream_contributes_to_connection_flow_control_ && | 529 return stream_contributes_to_connection_flow_control_ && |
| 526 connection_flow_controller_->IsBlocked(); | 530 connection_flow_controller_->IsBlocked(); |
| 527 } | 531 } |
| 528 | 532 |
| 529 } // namespace net | 533 } // namespace net |
| OLD | NEW |