OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_utils.h" | 5 #include "net/quic/quic_utils.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 return "INVALID_ENCRYPTION_LEVEL"; | 237 return "INVALID_ENCRYPTION_LEVEL"; |
238 } | 238 } |
239 | 239 |
240 // static | 240 // static |
241 const char* QuicUtils::TransmissionTypeToString(TransmissionType type) { | 241 const char* QuicUtils::TransmissionTypeToString(TransmissionType type) { |
242 switch (type) { | 242 switch (type) { |
243 RETURN_STRING_LITERAL(NOT_RETRANSMISSION); | 243 RETURN_STRING_LITERAL(NOT_RETRANSMISSION); |
244 RETURN_STRING_LITERAL(HANDSHAKE_RETRANSMISSION); | 244 RETURN_STRING_LITERAL(HANDSHAKE_RETRANSMISSION); |
245 RETURN_STRING_LITERAL(LOSS_RETRANSMISSION); | 245 RETURN_STRING_LITERAL(LOSS_RETRANSMISSION); |
246 RETURN_STRING_LITERAL(ALL_UNACKED_RETRANSMISSION); | 246 RETURN_STRING_LITERAL(ALL_UNACKED_RETRANSMISSION); |
| 247 RETURN_STRING_LITERAL(ALL_INITIAL_RETRANSMISSION); |
247 RETURN_STRING_LITERAL(RTO_RETRANSMISSION); | 248 RETURN_STRING_LITERAL(RTO_RETRANSMISSION); |
248 RETURN_STRING_LITERAL(TLP_RETRANSMISSION); | 249 RETURN_STRING_LITERAL(TLP_RETRANSMISSION); |
249 } | 250 } |
250 return "INVALID_TRANSMISSION_TYPE"; | 251 return "INVALID_TRANSMISSION_TYPE"; |
251 } | 252 } |
252 | 253 |
253 // static | 254 // static |
254 string QuicUtils::TagToString(QuicTag tag) { | 255 string QuicUtils::TagToString(QuicTag tag) { |
255 char chars[4]; | 256 char chars[4]; |
256 bool ascii = true; | 257 bool ascii = true; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 QuicPriority QuicUtils::LowestPriority() { | 312 QuicPriority QuicUtils::LowestPriority() { |
312 return QuicWriteBlockedList::kLowestPriority; | 313 return QuicWriteBlockedList::kLowestPriority; |
313 } | 314 } |
314 | 315 |
315 // static | 316 // static |
316 QuicPriority QuicUtils::HighestPriority() { | 317 QuicPriority QuicUtils::HighestPriority() { |
317 return QuicWriteBlockedList::kHighestPriority; | 318 return QuicWriteBlockedList::kHighestPriority; |
318 } | 319 } |
319 | 320 |
320 } // namespace net | 321 } // namespace net |
OLD | NEW |