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

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

Issue 130003003: QUIC - minor clean up changes found while merging changes into internal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with TOT Created 6 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | no next file » | 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_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_SEQUENCER_H_
6 #define NET_QUIC_QUIC_STREAM_SEQUENCER_H_ 6 #define NET_QUIC_QUIC_STREAM_SEQUENCER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Buffers frames until we have something which can be passed 27 // Buffers frames until we have something which can be passed
28 // up to the next layer. 28 // up to the next layer.
29 // TOOD(alyssar) add some checks for overflow attempts [1, 256,] [2, 256] 29 // TOOD(alyssar) add some checks for overflow attempts [1, 256,] [2, 256]
30 class NET_EXPORT_PRIVATE QuicStreamSequencer { 30 class NET_EXPORT_PRIVATE QuicStreamSequencer {
31 public: 31 public:
32 explicit QuicStreamSequencer(ReliableQuicStream* quic_stream); 32 explicit QuicStreamSequencer(ReliableQuicStream* quic_stream);
33 QuicStreamSequencer(size_t max_frame_memory, 33 QuicStreamSequencer(size_t max_frame_memory,
34 ReliableQuicStream* quic_stream); 34 ReliableQuicStream* quic_stream);
35 35
36 virtual ~QuicStreamSequencer() ; 36 virtual ~QuicStreamSequencer();
37 37
38 // Returns the expected value of OnStreamFrame for this frame. 38 // Returns the expected value of OnStreamFrame for this frame.
39 bool WillAcceptStreamFrame(const QuicStreamFrame& frame) const; 39 bool WillAcceptStreamFrame(const QuicStreamFrame& frame) const;
40 40
41 // If the frame is the next one we need in order to process in-order data, 41 // If the frame is the next one we need in order to process in-order data,
42 // ProcessData will be immediately called on the stream until all buffered 42 // ProcessData will be immediately called on the stream until all buffered
43 // data is processed or the stream fails to consume data. Any unconsumed 43 // data is processed or the stream fails to consume data. Any unconsumed
44 // data will be buffered. 44 // data will be buffered.
45 // 45 //
46 // If the frame is not the next in line, it will either be buffered, and 46 // If the frame is not the next in line, it will either be buffered, and
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 size_t max_frame_memory_; // the maximum memory the sequencer can buffer. 95 size_t max_frame_memory_; // the maximum memory the sequencer can buffer.
96 // The offset, if any, we got a stream termination for. When this many bytes 96 // The offset, if any, we got a stream termination for. When this many bytes
97 // have been processed, the sequencer will be closed. 97 // have been processed, the sequencer will be closed.
98 QuicStreamOffset close_offset_; 98 QuicStreamOffset close_offset_;
99 bool blocked_; 99 bool blocked_;
100 }; 100 };
101 101
102 } // namespace net 102 } // namespace net
103 103
104 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_H_ 104 #endif // NET_QUIC_QUIC_STREAM_SEQUENCER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698