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 #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, | |
brucedawson
2015/11/30 22:53:08
This change is fragile and could be made simpler a
| |
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 |
OLD | NEW |