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