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

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

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years 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/core/quic_stream.h ('k') | net/quic/core/quic_stream_sequencer_buffer.h » ('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_CORE_QUIC_STREAM_SEQUENCER_H_ 5 #ifndef NET_QUIC_CORE_QUIC_STREAM_SEQUENCER_H_
6 #define NET_QUIC_CORE_QUIC_STREAM_SEQUENCER_H_ 6 #define NET_QUIC_CORE_QUIC_STREAM_SEQUENCER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "net/base/net_export.h"
14 #include "net/quic/core/quic_packets.h" 13 #include "net/quic/core/quic_packets.h"
15 #include "net/quic/core/quic_stream_sequencer_buffer.h" 14 #include "net/quic/core/quic_stream_sequencer_buffer.h"
15 #include "net/quic/platform/api/quic_export.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 namespace test { 19 namespace test {
20 class QuicStreamSequencerPeer; 20 class QuicStreamSequencerPeer;
21 } // namespace test 21 } // namespace test
22 22
23 class QuicClock; 23 class QuicClock;
24 class QuicStream; 24 class QuicStream;
25 25
26 // Buffers frames until we have something which can be passed 26 // Buffers frames until we have something which can be passed
27 // up to the next layer. 27 // up to the next layer.
28 class NET_EXPORT_PRIVATE QuicStreamSequencer { 28 class QUIC_EXPORT_PRIVATE QuicStreamSequencer {
29 public: 29 public:
30 QuicStreamSequencer(QuicStream* quic_stream, const QuicClock* clock); 30 QuicStreamSequencer(QuicStream* quic_stream, const QuicClock* clock);
31 virtual ~QuicStreamSequencer(); 31 virtual ~QuicStreamSequencer();
32 32
33 // If the frame is the next one we need in order to process in-order data, 33 // If the frame is the next one we need in order to process in-order data,
34 // ProcessData will be immediately called on the stream until all buffered 34 // ProcessData will be immediately called on the stream until all buffered
35 // data is processed or the stream fails to consume data. Any unconsumed 35 // data is processed or the stream fails to consume data. Any unconsumed
36 // data will be buffered. If the frame is not the next in line, it will be 36 // data will be buffered. If the frame is not the next in line, it will be
37 // buffered. 37 // buffered.
38 void OnStreamFrame(const QuicStreamFrame& frame); 38 void OnStreamFrame(const QuicStreamFrame& frame);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // If true, all incoming data will be discarded. 142 // If true, all incoming data will be discarded.
143 bool ignore_read_data_; 143 bool ignore_read_data_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(QuicStreamSequencer); 145 DISALLOW_COPY_AND_ASSIGN(QuicStreamSequencer);
146 }; 146 };
147 147
148 } // namespace net 148 } // namespace net
149 149
150 #endif // NET_QUIC_CORE_QUIC_STREAM_SEQUENCER_H_ 150 #endif // NET_QUIC_CORE_QUIC_STREAM_SEQUENCER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_stream.h ('k') | net/quic/core/quic_stream_sequencer_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698