| 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_QUIC_WRITE_BLOCKED_LIST_H_ | 5 #ifndef NET_QUIC_QUIC_WRITE_BLOCKED_LIST_H_ |
| 6 #define NET_QUIC_QUIC_WRITE_BLOCKED_LIST_H_ | 6 #define NET_QUIC_QUIC_WRITE_BLOCKED_LIST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 crypto_stream_blocked_ = true; | 128 crypto_stream_blocked_ = true; |
| 129 return; | 129 return; |
| 130 } | 130 } |
| 131 | 131 |
| 132 if (stream_id == kHeadersStreamId) { | 132 if (stream_id == kHeadersStreamId) { |
| 133 // TODO(avd) Add DCHECK(!headers_stream_blocked_); | 133 // TODO(avd) Add DCHECK(!headers_stream_blocked_); |
| 134 headers_stream_blocked_ = true; | 134 headers_stream_blocked_ = true; |
| 135 return; | 135 return; |
| 136 } | 136 } |
| 137 bool push_front = | 137 bool push_front = |
| 138 FLAGS_quic_batch_writes && | |
| 139 stream_id == batch_write_stream_id_[last_priority_popped_] && | 138 stream_id == batch_write_stream_id_[last_priority_popped_] && |
| 140 bytes_left_for_batch_write_[last_priority_popped_] > 0; | 139 bytes_left_for_batch_write_[last_priority_popped_] > 0; |
| 141 priority_write_scheduler_.MarkStreamReady(stream_id, push_front); | 140 priority_write_scheduler_.MarkStreamReady(stream_id, push_front); |
| 142 | 141 |
| 143 return; | 142 return; |
| 144 } | 143 } |
| 145 | 144 |
| 146 bool crypto_stream_blocked() const { return crypto_stream_blocked_; } | 145 bool crypto_stream_blocked() const { return crypto_stream_blocked_; } |
| 147 bool headers_stream_blocked() const { return headers_stream_blocked_; } | 146 bool headers_stream_blocked() const { return headers_stream_blocked_; } |
| 148 | 147 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 163 | 162 |
| 164 bool crypto_stream_blocked_; | 163 bool crypto_stream_blocked_; |
| 165 bool headers_stream_blocked_; | 164 bool headers_stream_blocked_; |
| 166 | 165 |
| 167 DISALLOW_COPY_AND_ASSIGN(QuicWriteBlockedList); | 166 DISALLOW_COPY_AND_ASSIGN(QuicWriteBlockedList); |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace net | 169 } // namespace net |
| 171 | 170 |
| 172 #endif // NET_QUIC_QUIC_WRITE_BLOCKED_LIST_H_ | 171 #endif // NET_QUIC_QUIC_WRITE_BLOCKED_LIST_H_ |
| OLD | NEW |