OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WRITE_BLOCKED_LIST_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_WRITE_BLOCKED_LIST_H_ |
6 #define NET_QUIC_CORE_QUIC_WRITE_BLOCKED_LIST_H_ | 6 #define NET_QUIC_CORE_QUIC_WRITE_BLOCKED_LIST_H_ |
7 | 7 |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <cstdint> | 9 #include <cstdint> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "net/quic/core/quic_packets.h" | 12 #include "net/quic/core/quic_packets.h" |
13 #include "net/quic/platform/api/quic_export.h" | 13 #include "net/quic/platform/api/quic_export.h" |
14 #include "net/spdy/priority_write_scheduler.h" | 14 #include "net/spdy/core/priority_write_scheduler.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 // Keeps tracks of the QUIC streams that have data to write, sorted by | 18 // Keeps tracks of the QUIC streams that have data to write, sorted by |
19 // priority. QUIC stream priority order is: | 19 // priority. QUIC stream priority order is: |
20 // Crypto stream > Headers stream > Data streams by requested priority. | 20 // Crypto stream > Headers stream > Data streams by requested priority. |
21 class QUIC_EXPORT_PRIVATE QuicWriteBlockedList { | 21 class QUIC_EXPORT_PRIVATE QuicWriteBlockedList { |
22 private: | 22 private: |
23 typedef PriorityWriteScheduler<QuicStreamId> QuicPriorityWriteScheduler; | 23 typedef PriorityWriteScheduler<QuicStreamId> QuicPriorityWriteScheduler; |
24 | 24 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 bool crypto_stream_blocked_; | 165 bool crypto_stream_blocked_; |
166 bool headers_stream_blocked_; | 166 bool headers_stream_blocked_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(QuicWriteBlockedList); | 168 DISALLOW_COPY_AND_ASSIGN(QuicWriteBlockedList); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace net | 171 } // namespace net |
172 | 172 |
173 #endif // NET_QUIC_CORE_QUIC_WRITE_BLOCKED_LIST_H_ | 173 #endif // NET_QUIC_CORE_QUIC_WRITE_BLOCKED_LIST_H_ |
OLD | NEW |