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

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

Issue 1472563002: Let QUIC streams write 16k before ceding. Behind FLAG_quic_batch_writes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107581674
Patch Set: Created 5 years 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_write_blocked_list.h ('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 #include "net/quic/quic_write_blocked_list.h" 5 #include "net/quic/quic_write_blocked_list.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 const QuicPriority QuicWriteBlockedList::kHighestPriority =
10 static_cast<QuicPriority>(net::kHighestPriority);
11 const QuicPriority QuicWriteBlockedList::kLowestPriority =
12 static_cast<QuicPriority>(net::kLowestPriority);
13
14 QuicWriteBlockedList::QuicWriteBlockedList() 9 QuicWriteBlockedList::QuicWriteBlockedList()
15 : crypto_stream_blocked_(false), headers_stream_blocked_(false) { 10 : last_priority_popped_(0),
11 crypto_stream_blocked_(false),
12 headers_stream_blocked_(false) {
13 memset(batch_write_stream_id_, 0,
14 arraysize(batch_write_stream_id_) * sizeof(QuicStreamId));
15 memset(bytes_left_for_batch_write_, 0,
16 arraysize(bytes_left_for_batch_write_) * sizeof(int32));
16 } 17 }
17 18
18 QuicWriteBlockedList::~QuicWriteBlockedList() {} 19 QuicWriteBlockedList::~QuicWriteBlockedList() {}
19 20
20 } // namespace net 21 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_write_blocked_list.h ('k') | net/quic/quic_write_blocked_list_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698