| 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 #ifndef NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_ | 5 #ifndef NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_ |
| 6 #define NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_ | 6 #define NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/core/quic_protocol.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 // The QuicStreamSequencer uses an implementation of this interface to store | 14 // The QuicStreamSequencer uses an implementation of this interface to store |
| 15 // received data. | 15 // received data. |
| 16 class NET_EXPORT_PRIVATE QuicStreamSequencerBufferInterface { | 16 class NET_EXPORT_PRIVATE QuicStreamSequencerBufferInterface { |
| 17 public: | 17 public: |
| 18 virtual ~QuicStreamSequencerBufferInterface() {} | 18 virtual ~QuicStreamSequencerBufferInterface() {} |
| 19 | 19 |
| 20 // Free the space used to buffer data. | 20 // Free the space used to buffer data. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Count how many bytes have been consumed (read out of buffer). | 67 // Count how many bytes have been consumed (read out of buffer). |
| 68 virtual QuicStreamOffset BytesConsumed() const = 0; | 68 virtual QuicStreamOffset BytesConsumed() const = 0; |
| 69 | 69 |
| 70 // Count how many bytes are in buffer at this moment. | 70 // Count how many bytes are in buffer at this moment. |
| 71 virtual size_t BytesBuffered() const = 0; | 71 virtual size_t BytesBuffered() const = 0; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace net | 74 } // namespace net |
| 75 | 75 |
| 76 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_ | 76 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_ |
| OLD | NEW |