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

Unified Diff: net/quic/quic_write_blocked_list.cc

Issue 989523005: Avoid duplicates in SPDY's write blocked list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use hash_map. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_write_blocked_list.cc
diff --git a/net/quic/quic_write_blocked_list.cc b/net/quic/quic_write_blocked_list.cc
index 10f9c343bfab3ea2d8f7f911913e61aeb6eb0fcc..36854e55ec0568de55dd4af32962b296527d9ec6 100644
--- a/net/quic/quic_write_blocked_list.cc
+++ b/net/quic/quic_write_blocked_list.cc
@@ -11,9 +11,11 @@ const QuicPriority QuicWriteBlockedList::kHighestPriority =
const QuicPriority QuicWriteBlockedList::kLowestPriority =
static_cast<QuicPriority>(net::kLowestPriority);
-QuicWriteBlockedList::QuicWriteBlockedList()
- : crypto_stream_blocked_(false),
- headers_stream_blocked_(false) {}
+QuicWriteBlockedList::QuicWriteBlockedList(bool avoid_duplicate_streams)
+ : base_write_blocked_list_(avoid_duplicate_streams),
+ crypto_stream_blocked_(false),
+ headers_stream_blocked_(false) {
+}
QuicWriteBlockedList::~QuicWriteBlockedList() {}

Powered by Google App Engine
This is Rietveld 408576698