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

Unified Diff: net/quic/quic_write_blocked_list.h

Issue 288313003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: implemented rch's comments Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_write_blocked_list.h
diff --git a/net/quic/quic_write_blocked_list.h b/net/quic/quic_write_blocked_list.h
index cddd58fb37b4638b1528d16234b8c7b1d57670d8..6727fb4e826e2fae1d5653a153ab3cbcacd1347b 100644
--- a/net/quic/quic_write_blocked_list.h
+++ b/net/quic/quic_write_blocked_list.h
@@ -27,10 +27,12 @@ class NET_EXPORT_PRIVATE QuicWriteBlockedList {
QuicWriteBlockedList();
~QuicWriteBlockedList();
- bool HasWriteBlockedStreams() const {
- return crypto_stream_blocked_ ||
- headers_stream_blocked_ ||
- base_write_blocked_list_.HasWriteBlockedStreams();
+ bool HasWriteBlockedDataStreams() const {
+ return base_write_blocked_list_.HasWriteBlockedStreams();
+ }
+
+ bool HasWriteBlockedCryptoOrHeadersStream() const {
+ return crypto_stream_blocked_ || headers_stream_blocked_;
}
size_t NumBlockedStreams() const {
@@ -89,6 +91,9 @@ class NET_EXPORT_PRIVATE QuicWriteBlockedList {
return;
}
+ bool crypto_stream_blocked() const { return crypto_stream_blocked_; }
+ bool headers_stream_blocked() const { return headers_stream_blocked_; }
+
private:
QuicWriteBlockedListBase base_write_blocked_list_;
bool crypto_stream_blocked_;

Powered by Google App Engine
This is Rietveld 408576698