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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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_unacked_packet_map.cc ('k') | net/quic/test_tools/quic_config_peer.h » ('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 (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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 RETURN_STRING_LITERAL(QUIC_CONNECTION_IP_POOLED); 210 RETURN_STRING_LITERAL(QUIC_CONNECTION_IP_POOLED);
211 RETURN_STRING_LITERAL(QUIC_PROOF_INVALID); 211 RETURN_STRING_LITERAL(QUIC_PROOF_INVALID);
212 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG); 212 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG);
213 RETURN_STRING_LITERAL(QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT); 213 RETURN_STRING_LITERAL(QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT);
214 RETURN_STRING_LITERAL(QUIC_CRYPTO_SERVER_CONFIG_EXPIRED); 214 RETURN_STRING_LITERAL(QUIC_CRYPTO_SERVER_CONFIG_EXPIRED);
215 RETURN_STRING_LITERAL(QUIC_INVALID_CHANNEL_ID_SIGNATURE); 215 RETURN_STRING_LITERAL(QUIC_INVALID_CHANNEL_ID_SIGNATURE);
216 RETURN_STRING_LITERAL(QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED); 216 RETURN_STRING_LITERAL(QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED);
217 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO); 217 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO);
218 RETURN_STRING_LITERAL(QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE); 218 RETURN_STRING_LITERAL(QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE);
219 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH); 219 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH);
220 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS);
221 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS);
220 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); 222 RETURN_STRING_LITERAL(QUIC_LAST_ERROR);
221 // Intentionally have no default case, so we'll break the build 223 // Intentionally have no default case, so we'll break the build
222 // if we add errors and don't put them here. 224 // if we add errors and don't put them here.
223 } 225 }
224 // Return a default value so that we return this when |error| doesn't match 226 // Return a default value so that we return this when |error| doesn't match
225 // any of the QuicErrorCodes. This can happen when the ConnectionClose 227 // any of the QuicErrorCodes. This can happen when the ConnectionClose
226 // frame sent by the peer (attacker) has invalid error code. 228 // frame sent by the peer (attacker) has invalid error code.
227 return "INVALID_ERROR_CODE"; 229 return "INVALID_ERROR_CODE";
228 } 230 }
229 231
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 QuicPriority QuicUtils::LowestPriority() { 315 QuicPriority QuicUtils::LowestPriority() {
314 return QuicWriteBlockedList::kLowestPriority; 316 return QuicWriteBlockedList::kLowestPriority;
315 } 317 }
316 318
317 // static 319 // static
318 QuicPriority QuicUtils::HighestPriority() { 320 QuicPriority QuicUtils::HighestPriority() {
319 return QuicWriteBlockedList::kHighestPriority; 321 return QuicWriteBlockedList::kHighestPriority;
320 } 322 }
321 323
322 } // namespace net 324 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_unacked_packet_map.cc ('k') | net/quic/test_tools/quic_config_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698