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

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

Issue 13976007: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated copyright notice Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/test_tools/crypto_test_utils.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 "base/logging.h" 7 #include "base/logging.h"
8 #include "base/port.h" 8 #include "base/port.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 RETURN_STRING_LITERAL(QUIC_INVALID_GOAWAY_DATA); 66 RETURN_STRING_LITERAL(QUIC_INVALID_GOAWAY_DATA);
67 RETURN_STRING_LITERAL(QUIC_INVALID_ACK_DATA); 67 RETURN_STRING_LITERAL(QUIC_INVALID_ACK_DATA);
68 RETURN_STRING_LITERAL(QUIC_INVALID_VERSION_NEGOTIATION_PACKET); 68 RETURN_STRING_LITERAL(QUIC_INVALID_VERSION_NEGOTIATION_PACKET);
69 RETURN_STRING_LITERAL(QUIC_DECRYPTION_FAILURE); 69 RETURN_STRING_LITERAL(QUIC_DECRYPTION_FAILURE);
70 RETURN_STRING_LITERAL(QUIC_ENCRYPTION_FAILURE); 70 RETURN_STRING_LITERAL(QUIC_ENCRYPTION_FAILURE);
71 RETURN_STRING_LITERAL(QUIC_PACKET_TOO_LARGE); 71 RETURN_STRING_LITERAL(QUIC_PACKET_TOO_LARGE);
72 RETURN_STRING_LITERAL(QUIC_PACKET_FOR_NONEXISTENT_STREAM); 72 RETURN_STRING_LITERAL(QUIC_PACKET_FOR_NONEXISTENT_STREAM);
73 RETURN_STRING_LITERAL(QUIC_PEER_GOING_AWAY); 73 RETURN_STRING_LITERAL(QUIC_PEER_GOING_AWAY);
74 RETURN_STRING_LITERAL(QUIC_CRYPTO_TAGS_OUT_OF_ORDER); 74 RETURN_STRING_LITERAL(QUIC_CRYPTO_TAGS_OUT_OF_ORDER);
75 RETURN_STRING_LITERAL(QUIC_CRYPTO_TOO_MANY_ENTRIES); 75 RETURN_STRING_LITERAL(QUIC_CRYPTO_TOO_MANY_ENTRIES);
76 RETURN_STRING_LITERAL(QUIC_CRYPTO_TOO_MANY_REJECTS);
76 RETURN_STRING_LITERAL(QUIC_CRYPTO_INVALID_VALUE_LENGTH) 77 RETURN_STRING_LITERAL(QUIC_CRYPTO_INVALID_VALUE_LENGTH)
77 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE); 78 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE);
78 RETURN_STRING_LITERAL(QUIC_CRYPTO_INTERNAL_ERROR); 79 RETURN_STRING_LITERAL(QUIC_CRYPTO_INTERNAL_ERROR);
79 RETURN_STRING_LITERAL(QUIC_VERSION_NOT_SUPPORTED); 80 RETURN_STRING_LITERAL(QUIC_VERSION_NOT_SUPPORTED);
80 RETURN_STRING_LITERAL(QUIC_CRYPTO_NO_SUPPORT); 81 RETURN_STRING_LITERAL(QUIC_CRYPTO_NO_SUPPORT);
81 RETURN_STRING_LITERAL(QUIC_INVALID_CRYPTO_MESSAGE_TYPE); 82 RETURN_STRING_LITERAL(QUIC_INVALID_CRYPTO_MESSAGE_TYPE);
82 RETURN_STRING_LITERAL(QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER); 83 RETURN_STRING_LITERAL(QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER);
83 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND); 84 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND);
84 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP); 85 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP);
85 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND); 86 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND);
86 RETURN_STRING_LITERAL(QUIC_INVALID_STREAM_ID); 87 RETURN_STRING_LITERAL(QUIC_INVALID_STREAM_ID);
87 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OPEN_STREAMS); 88 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OPEN_STREAMS);
88 RETURN_STRING_LITERAL(QUIC_PUBLIC_RESET); 89 RETURN_STRING_LITERAL(QUIC_PUBLIC_RESET);
89 RETURN_STRING_LITERAL(QUIC_INVALID_VERSION); 90 RETURN_STRING_LITERAL(QUIC_INVALID_VERSION);
90 RETURN_STRING_LITERAL(QUIC_CONNECTION_TIMED_OUT); 91 RETURN_STRING_LITERAL(QUIC_CONNECTION_TIMED_OUT);
91 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); 92 RETURN_STRING_LITERAL(QUIC_LAST_ERROR);
92 // Intentionally have no default case, so we'll break the build 93 // Intentionally have no default case, so we'll break the build
93 // if we add errors and don't put them here. 94 // if we add errors and don't put them here.
94 } 95 }
95 // Return a default value so that we return this when |error| doesn't match 96 // Return a default value so that we return this when |error| doesn't match
96 // any of the QuicErrorCodes. This can happen when the ConnectionClose 97 // any of the QuicErrorCodes. This can happen when the ConnectionClose
97 // frame sent by the peer (attacker) has invalid error code. 98 // frame sent by the peer (attacker) has invalid error code.
98 return "INVALID_ERROR_CODE"; 99 return "INVALID_ERROR_CODE";
99 } 100 }
100 101
101 } // namespace net 102 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698