| 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/quic_stream_sequencer.h" | 5 #include "net/quic/core/quic_stream_sequencer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/strings/string_number_conversions.h" | |
| 15 #include "base/strings/stringprintf.h" | |
| 16 #include "net/quic/core/quic_bug_tracker.h" | 14 #include "net/quic/core/quic_bug_tracker.h" |
| 17 #include "net/quic/core/quic_flags.h" | 15 #include "net/quic/core/quic_flags.h" |
| 18 #include "net/quic/core/quic_packets.h" | 16 #include "net/quic/core/quic_packets.h" |
| 19 #include "net/quic/core/quic_stream.h" | 17 #include "net/quic/core/quic_stream.h" |
| 20 #include "net/quic/core/quic_stream_sequencer_buffer.h" | 18 #include "net/quic/core/quic_stream_sequencer_buffer.h" |
| 21 #include "net/quic/core/quic_utils.h" | 19 #include "net/quic/core/quic_utils.h" |
| 22 #include "net/quic/platform/api/quic_clock.h" | 20 #include "net/quic/platform/api/quic_clock.h" |
| 23 #include "net/quic/platform/api/quic_str_cat.h" | 21 #include "net/quic/platform/api/quic_str_cat.h" |
| 24 | 22 |
| 25 using base::IntToString; | |
| 26 using base::StringPiece; | 23 using base::StringPiece; |
| 27 using base::StringPrintf; | |
| 28 using std::string; | 24 using std::string; |
| 29 | 25 |
| 30 namespace net { | 26 namespace net { |
| 31 | 27 |
| 32 QuicStreamSequencer::QuicStreamSequencer(QuicStream* quic_stream, | 28 QuicStreamSequencer::QuicStreamSequencer(QuicStream* quic_stream, |
| 33 const QuicClock* clock) | 29 const QuicClock* clock) |
| 34 : stream_(quic_stream), | 30 : stream_(quic_stream), |
| 35 buffered_frames_(kStreamReceiveWindowLimit), | 31 buffered_frames_(kStreamReceiveWindowLimit), |
| 36 close_offset_(std::numeric_limits<QuicStreamOffset>::max()), | 32 close_offset_(std::numeric_limits<QuicStreamOffset>::max()), |
| 37 blocked_(false), | 33 blocked_(false), |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 "\n bytes buffered: ", NumBytesBuffered(), | 222 "\n bytes buffered: ", NumBytesBuffered(), |
| 227 "\n bytes consumed: ", NumBytesConsumed(), | 223 "\n bytes consumed: ", NumBytesConsumed(), |
| 228 "\n has bytes to read: ", HasBytesToRead() ? "true" : "false", | 224 "\n has bytes to read: ", HasBytesToRead() ? "true" : "false", |
| 229 "\n frames received: ", num_frames_received(), | 225 "\n frames received: ", num_frames_received(), |
| 230 "\n close offset bytes: ", close_offset_, | 226 "\n close offset bytes: ", close_offset_, |
| 231 "\n is closed: ", IsClosed() ? "true" : "false"); | 227 "\n is closed: ", IsClosed() ? "true" : "false"); |
| 232 // clang-format on | 228 // clang-format on |
| 233 } | 229 } |
| 234 | 230 |
| 235 } // namespace net | 231 } // namespace net |
| OLD | NEW |