| 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/core/reliable_quic_stream.h" | 5 #include "net/quic/core/reliable_quic_stream.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/quic/core/iovector.h" | 8 #include "net/quic/core/iovector.h" |
| 9 #include "net/quic/core/quic_bug_tracker.h" | 9 #include "net/quic/core/quic_bug_tracker.h" |
| 10 #include "net/quic/core/quic_flags.h" | 10 #include "net/quic/core/quic_flags.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 | 121 |
| 122 sequencer_.OnStreamFrame(frame); | 122 sequencer_.OnStreamFrame(frame); |
| 123 } | 123 } |
| 124 | 124 |
| 125 int ReliableQuicStream::num_frames_received() const { | 125 int ReliableQuicStream::num_frames_received() const { |
| 126 return sequencer_.num_frames_received(); | 126 return sequencer_.num_frames_received(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 int ReliableQuicStream::num_early_frames_received() const { | |
| 130 return sequencer_.num_early_frames_received(); | |
| 131 } | |
| 132 | |
| 133 int ReliableQuicStream::num_duplicate_frames_received() const { | 129 int ReliableQuicStream::num_duplicate_frames_received() const { |
| 134 return sequencer_.num_duplicate_frames_received(); | 130 return sequencer_.num_duplicate_frames_received(); |
| 135 } | 131 } |
| 136 | 132 |
| 137 void ReliableQuicStream::OnStreamReset(const QuicRstStreamFrame& frame) { | 133 void ReliableQuicStream::OnStreamReset(const QuicRstStreamFrame& frame) { |
| 138 rst_received_ = true; | 134 rst_received_ = true; |
| 139 MaybeIncreaseHighestReceivedOffset(frame.byte_offset); | 135 MaybeIncreaseHighestReceivedOffset(frame.byte_offset); |
| 140 | 136 |
| 141 stream_error_ = frame.error_code; | 137 stream_error_ = frame.error_code; |
| 142 CloseWriteSide(); | 138 CloseWriteSide(); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 } | 462 } |
| 467 } | 463 } |
| 468 | 464 |
| 469 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) { | 465 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) { |
| 470 if (flow_controller_.UpdateSendWindowOffset(new_window)) { | 466 if (flow_controller_.UpdateSendWindowOffset(new_window)) { |
| 471 OnCanWrite(); | 467 OnCanWrite(); |
| 472 } | 468 } |
| 473 } | 469 } |
| 474 | 470 |
| 475 } // namespace net | 471 } // namespace net |
| OLD | NEW |