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

Side by Side Diff: net/quic/quic_protocol.h

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_http_stream_test.cc ('k') | net/quic/quic_reliable_client_stream_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 (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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // A crypto message was received that contained a parameter with too few 213 // A crypto message was received that contained a parameter with too few
214 // values. 214 // values.
215 QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND, 215 QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND,
216 // An internal error occured in crypto processing. 216 // An internal error occured in crypto processing.
217 QUIC_CRYPTO_INTERNAL_ERROR, 217 QUIC_CRYPTO_INTERNAL_ERROR,
218 // A crypto handshake message specified an unsupported version. 218 // A crypto handshake message specified an unsupported version.
219 QUIC_VERSION_NOT_SUPPORTED, 219 QUIC_VERSION_NOT_SUPPORTED,
220 // There was no intersection between the crypto primitives supported by the 220 // There was no intersection between the crypto primitives supported by the
221 // peer and ourselves. 221 // peer and ourselves.
222 QUIC_CRYPTO_NO_SUPPORT, 222 QUIC_CRYPTO_NO_SUPPORT,
223 // The server rejected our client hello messages too many times.
224 QUIC_CRYPTO_TOO_MANY_REJECTS,
223 225
224 // No error. Used as bound while iterating. 226 // No error. Used as bound while iterating.
225 QUIC_LAST_ERROR, 227 QUIC_LAST_ERROR,
226 }; 228 };
227 229
228 // Version and Crypto tags are written to the wire with a big-endian 230 // Version and Crypto tags are written to the wire with a big-endian
229 // representation of the name of the tag. For example 231 // representation of the name of the tag. For example
230 // the client hello tag (CHLO) will be written as the 232 // the client hello tag (CHLO) will be written as the
231 // following 4 bytes: 'C' 'H' 'L' 'O'. Since it is 233 // following 4 bytes: 'C' 'H' 'L' 'O'. Since it is
232 // stored in memory as a little endian uint32, we need 234 // stored in memory as a little endian uint32, we need
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 NET_EXPORT_PRIVATE friend std::ostream& operator<<( 658 NET_EXPORT_PRIVATE friend std::ostream& operator<<(
657 std::ostream& os, const QuicConsumedData& s); 659 std::ostream& os, const QuicConsumedData& s);
658 660
659 size_t bytes_consumed; 661 size_t bytes_consumed;
660 bool fin_consumed; 662 bool fin_consumed;
661 }; 663 };
662 664
663 } // namespace net 665 } // namespace net
664 666
665 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 667 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698