| 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 #ifndef NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_H_ | 5 #ifndef NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_H_ |
| 6 #define NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_H_ | 6 #define NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_H_ |
| 7 | 7 |
| 8 // QuicStreamSequencerBuffer implements QuicStreamSequencerBufferInterface. | 8 // QuicStreamSequencerBuffer implements QuicStreamSequencerBufferInterface. |
| 9 // It is a circular stream buffer with random write and | 9 // It is a circular stream buffer with random write and |
| 10 // in-sequence read. It consists of a vector of pointers pointing | 10 // in-sequence read. It consists of a vector of pointers pointing |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // buffer.MarkConsumed(consumed); | 61 // buffer.MarkConsumed(consumed); |
| 62 | 62 |
| 63 #include <stddef.h> | 63 #include <stddef.h> |
| 64 | 64 |
| 65 #include <functional> | 65 #include <functional> |
| 66 #include <list> | 66 #include <list> |
| 67 #include <memory> | 67 #include <memory> |
| 68 | 68 |
| 69 #include "base/macros.h" | 69 #include "base/macros.h" |
| 70 #include "net/base/net_export.h" | 70 #include "net/base/net_export.h" |
| 71 #include "net/quic/core/quic_protocol.h" | 71 #include "net/quic/core/quic_packets.h" |
| 72 | 72 |
| 73 namespace net { | 73 namespace net { |
| 74 | 74 |
| 75 namespace test { | 75 namespace test { |
| 76 class QuicStreamSequencerBufferPeer; | 76 class QuicStreamSequencerBufferPeer; |
| 77 } // namespace test | 77 } // namespace test |
| 78 | 78 |
| 79 class NET_EXPORT_PRIVATE QuicStreamSequencerBuffer { | 79 class NET_EXPORT_PRIVATE QuicStreamSequencerBuffer { |
| 80 public: | 80 public: |
| 81 // A Gap indicates a missing chunk of bytes between | 81 // A Gap indicates a missing chunk of bytes between |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // For debugging use after free, assigned to 123456 in constructor and 654321 | 251 // For debugging use after free, assigned to 123456 in constructor and 654321 |
| 252 // in destructor. As long as it's not 123456, this means either use after free | 252 // in destructor. As long as it's not 123456, this means either use after free |
| 253 // or memory corruption. | 253 // or memory corruption. |
| 254 int32_t destruction_indicator_; | 254 int32_t destruction_indicator_; |
| 255 | 255 |
| 256 DISALLOW_COPY_AND_ASSIGN(QuicStreamSequencerBuffer); | 256 DISALLOW_COPY_AND_ASSIGN(QuicStreamSequencerBuffer); |
| 257 }; | 257 }; |
| 258 } // namespace net | 258 } // namespace net |
| 259 | 259 |
| 260 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_H_ | 260 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_H_ |
| OLD | NEW |