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_CORE_QUIC_FRAME_LIST_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_FRAME_LIST_H_ |
6 #define NET_QUIC_CORE_QUIC_FRAME_LIST_H_ | 6 #define NET_QUIC_CORE_QUIC_FRAME_LIST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 |
9 #include <list> | 10 #include <list> |
10 #include <string> | 11 #include <string> |
11 | 12 |
12 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
13 #include "net/base/net_export.h" | |
14 #include "net/quic/core/quic_packets.h" | 14 #include "net/quic/core/quic_packets.h" |
15 #include "net/quic/core/quic_stream_sequencer_buffer_interface.h" | 15 #include "net/quic/core/quic_stream_sequencer_buffer_interface.h" |
| 16 #include "net/quic/platform/api/quic_export.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 namespace test { | 20 namespace test { |
20 class QuicStreamSequencerPeer; | 21 class QuicStreamSequencerPeer; |
21 } | 22 } |
22 | 23 |
23 class NET_EXPORT_PRIVATE QuicFrameList | 24 class QUIC_EXPORT_PRIVATE QuicFrameList |
24 : public QuicStreamSequencerBufferInterface { | 25 : public QuicStreamSequencerBufferInterface { |
25 public: | 26 public: |
26 // A contiguous segment received by a QUIC stream. | 27 // A contiguous segment received by a QUIC stream. |
27 struct FrameData { | 28 struct FrameData { |
28 FrameData(QuicStreamOffset offset, | 29 FrameData(QuicStreamOffset offset, |
29 std::string segment, | 30 std::string segment, |
30 const QuicTime timestamp); | 31 const QuicTime timestamp); |
31 | 32 |
32 const QuicStreamOffset offset; | 33 const QuicStreamOffset offset; |
33 std::string segment; | 34 std::string segment; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 74 |
74 // Number of bytes in buffer. | 75 // Number of bytes in buffer. |
75 size_t num_bytes_buffered_ = 0; | 76 size_t num_bytes_buffered_ = 0; |
76 | 77 |
77 QuicStreamOffset total_bytes_read_ = 0; | 78 QuicStreamOffset total_bytes_read_ = 0; |
78 }; | 79 }; |
79 | 80 |
80 } // namespace net | 81 } // namespace net |
81 | 82 |
82 #endif // NET_QUIC_CORE_QUIC_FRAME_LIST_H_ | 83 #endif // NET_QUIC_CORE_QUIC_FRAME_LIST_H_ |
OLD | NEW |