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_SPDY_PRIORITY_WRITE_SCHEDULER_H_ | 5 #ifndef NET_SPDY_PRIORITY_WRITE_SCHEDULER_H_ |
6 #define NET_SPDY_PRIORITY_WRITE_SCHEDULER_H_ | 6 #define NET_SPDY_PRIORITY_WRITE_SCHEDULER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <algorithm> | 10 #include <algorithm> |
9 #include <deque> | 11 #include <deque> |
10 #include <unordered_map> | 12 #include <unordered_map> |
11 #include <utility> | 13 #include <utility> |
12 | 14 |
13 #include "base/logging.h" | 15 #include "base/logging.h" |
14 #include "net/spdy/spdy_protocol.h" | 16 #include "net/spdy/spdy_protocol.h" |
15 | 17 |
16 namespace net { | 18 namespace net { |
17 | 19 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 252 |
251 // IDs of streams that are ready to write, grouped by priority. | 253 // IDs of streams that are ready to write, grouped by priority. |
252 StreamIdList ready_lists_[kV3LowestPriority + 1]; | 254 StreamIdList ready_lists_[kV3LowestPriority + 1]; |
253 // StreamInfos for all registered streams. | 255 // StreamInfos for all registered streams. |
254 StreamInfoMap stream_infos_; | 256 StreamInfoMap stream_infos_; |
255 }; | 257 }; |
256 | 258 |
257 } // namespace net | 259 } // namespace net |
258 | 260 |
259 #endif // NET_SPDY_PRIORITY_WRITE_SCHEDULER_H_ | 261 #endif // NET_SPDY_PRIORITY_WRITE_SCHEDULER_H_ |
OLD | NEW |