| 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" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "net/quic/core/quic_bug_tracker.h" | 16 #include "net/quic/core/quic_bug_tracker.h" |
| 17 #include "net/quic/core/quic_clock.h" | |
| 18 #include "net/quic/core/quic_flags.h" | 17 #include "net/quic/core/quic_flags.h" |
| 19 #include "net/quic/core/quic_packets.h" | 18 #include "net/quic/core/quic_packets.h" |
| 20 #include "net/quic/core/quic_stream.h" | 19 #include "net/quic/core/quic_stream.h" |
| 21 #include "net/quic/core/quic_stream_sequencer_buffer.h" | 20 #include "net/quic/core/quic_stream_sequencer_buffer.h" |
| 22 #include "net/quic/core/quic_utils.h" | 21 #include "net/quic/core/quic_utils.h" |
| 22 #include "net/quic/platform/api/quic_clock.h" |
| 23 | 23 |
| 24 using base::IntToString; | 24 using base::IntToString; |
| 25 using base::StringPiece; | 25 using base::StringPiece; |
| 26 using base::StringPrintf; | 26 using base::StringPrintf; |
| 27 using std::string; | 27 using std::string; |
| 28 | 28 |
| 29 namespace net { | 29 namespace net { |
| 30 | 30 |
| 31 QuicStreamSequencer::QuicStreamSequencer(QuicStream* quic_stream, | 31 QuicStreamSequencer::QuicStreamSequencer(QuicStream* quic_stream, |
| 32 const QuicClock* clock) | 32 const QuicClock* clock) |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 "\n bytes buffered: " + IntToString(NumBytesBuffered()) + | 226 "\n bytes buffered: " + IntToString(NumBytesBuffered()) + |
| 227 "\n bytes consumed: " + IntToString( NumBytesConsumed()) + | 227 "\n bytes consumed: " + IntToString( NumBytesConsumed()) + |
| 228 "\n has bytes to read: " + (HasBytesToRead() ? "true" : "false") + | 228 "\n has bytes to read: " + (HasBytesToRead() ? "true" : "false") + |
| 229 "\n frames received: " + IntToString(num_frames_received()) + | 229 "\n frames received: " + IntToString(num_frames_received()) + |
| 230 "\n close offset bytes: " + IntToString( close_offset_) + | 230 "\n close offset bytes: " + IntToString( close_offset_) + |
| 231 "\n is closed: " + (IsClosed() ? "true" : "false"); | 231 "\n is closed: " + (IsClosed() ? "true" : "false"); |
| 232 // clang-format on | 232 // clang-format on |
| 233 } | 233 } |
| 234 | 234 |
| 235 } // namespace net | 235 } // namespace net |
| OLD | NEW |