Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: net/quic/quic_stream_sequencer_buffer_interface.h

Issue 1421853006: Landing Recent QUIC changes until: Fri Oct 30 22:23:58 2015 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_spdy_stream_test.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "net/quic/quic_frame_list.h"
9 #include "net/quic/quic_protocol.h" 8 #include "net/quic/quic_protocol.h"
10 9
11 using base::StringPiece; 10 using base::StringPiece;
12 11
13 namespace net { 12 namespace net {
14 13
15 // The QuicStreamSequencer uses an implementation of this interface to store 14 // The QuicStreamSequencer uses an implementation of this interface to store
16 // received data. 15 // received data.
17 class NET_EXPORT_PRIVATE QuicStreamSequencerBufferInterface { 16 class NET_EXPORT_PRIVATE QuicStreamSequencerBufferInterface {
18 public: 17 public:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Count how many bytes have been consumed (read out of buffer). 67 // Count how many bytes have been consumed (read out of buffer).
69 virtual QuicStreamOffset BytesConsumed() const = 0; 68 virtual QuicStreamOffset BytesConsumed() const = 0;
70 69
71 // Count how many bytes are in buffer at this moment. 70 // Count how many bytes are in buffer at this moment.
72 virtual size_t BytesBuffered() const = 0; 71 virtual size_t BytesBuffered() const = 0;
73 }; 72 };
74 73
75 } // namespace net 74 } // namespace net
76 75
77 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_ 76 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_BUFFER_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/quic_spdy_stream_test.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698