| 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> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 #include <deque> | 12 #include <deque> |
| 13 #include <tuple> | 13 #include <tuple> |
| 14 #include <unordered_map> | 14 #include <unordered_map> |
| 15 #include <utility> | 15 #include <utility> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "net/spdy/spdy_bug_tracker.h" | 19 #include "net/spdy/core/spdy_bug_tracker.h" |
| 20 #include "net/spdy/spdy_protocol.h" | 20 #include "net/spdy/core/spdy_protocol.h" |
| 21 #include "net/spdy/write_scheduler.h" | 21 #include "net/spdy/core/write_scheduler.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 namespace test { | 25 namespace test { |
| 26 template <typename StreamIdType> | 26 template <typename StreamIdType> |
| 27 class PriorityWriteSchedulerPeer; | 27 class PriorityWriteSchedulerPeer; |
| 28 } | 28 } |
| 29 | 29 |
| 30 // WriteScheduler implementation that manages the order in which streams are | 30 // WriteScheduler implementation that manages the order in which streams are |
| 31 // written using the SPDY priority scheme described at: | 31 // written using the SPDY priority scheme described at: |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 size_t num_ready_streams_ = 0; | 289 size_t num_ready_streams_ = 0; |
| 290 // Per-priority state, including ready lists. | 290 // Per-priority state, including ready lists. |
| 291 PriorityInfo priority_infos_[kV3LowestPriority + 1]; | 291 PriorityInfo priority_infos_[kV3LowestPriority + 1]; |
| 292 // StreamInfos for all registered streams. | 292 // StreamInfos for all registered streams. |
| 293 StreamInfoMap stream_infos_; | 293 StreamInfoMap stream_infos_; |
| 294 }; | 294 }; |
| 295 | 295 |
| 296 } // namespace net | 296 } // namespace net |
| 297 | 297 |
| 298 #endif // NET_SPDY_PRIORITY_WRITE_SCHEDULER_H_ | 298 #endif // NET_SPDY_PRIORITY_WRITE_SCHEDULER_H_ |
| OLD | NEW |