OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/stream_sequencer_buffer.h" | 5 #include "net/quic/stream_sequencer_buffer.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 | 8 |
10 using std::min; | 9 using std::min; |
11 | 10 |
12 namespace net { | 11 namespace net { |
13 | 12 |
14 StreamSequencerBuffer::Gap::Gap(QuicStreamOffset begin_offset, | 13 StreamSequencerBuffer::Gap::Gap(QuicStreamOffset begin_offset, |
15 QuicStreamOffset end_offset) | 14 QuicStreamOffset end_offset) |
16 : begin_offset(begin_offset), end_offset(end_offset) {} | 15 : begin_offset(begin_offset), end_offset(end_offset) {} |
17 | 16 |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 offset, FrameInfo(erased.first + erased.second.length - offset, | 443 offset, FrameInfo(erased.first + erased.second.length - offset, |
445 erased.second.timestamp)); | 444 erased.second.timestamp)); |
446 DVLOG(1) << "Inserted FrameInfo with offset: " << updated.first | 445 DVLOG(1) << "Inserted FrameInfo with offset: " << updated.first |
447 << " and length: " << updated.second.length; | 446 << " and length: " << updated.second.length; |
448 frame_arrival_time_map_.insert(updated); | 447 frame_arrival_time_map_.insert(updated); |
449 } | 448 } |
450 } | 449 } |
451 } | 450 } |
452 | 451 |
453 } // namespace net | 452 } // namespace net |
OLD | NEW |