Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: net/quic/quic_write_blocked_list.h

Issue 1780913002: Deprecating FLAG_quic_batch_writes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115853846
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_write_blocked_list_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_write_blocked_list_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698