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

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

Issue 23532042: Report a more specific QUIC error when reading from the socket fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_client_session.cc ('k') | net/quic/quic_utils.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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 // The Header ID for a stream was too far from the previous. 343 // The Header ID for a stream was too far from the previous.
344 QUIC_INVALID_HEADER_ID = 22, 344 QUIC_INVALID_HEADER_ID = 22,
345 // Negotiable parameter received during handshake had invalid value. 345 // Negotiable parameter received during handshake had invalid value.
346 QUIC_INVALID_NEGOTIATED_VALUE = 23, 346 QUIC_INVALID_NEGOTIATED_VALUE = 23,
347 // There was an error decompressing data. 347 // There was an error decompressing data.
348 QUIC_DECOMPRESSION_FAILURE = 24, 348 QUIC_DECOMPRESSION_FAILURE = 24,
349 // We hit our prenegotiated (or default) timeout 349 // We hit our prenegotiated (or default) timeout
350 QUIC_CONNECTION_TIMED_OUT = 25, 350 QUIC_CONNECTION_TIMED_OUT = 25,
351 // There was an error encountered migrating addresses 351 // There was an error encountered migrating addresses
352 QUIC_ERROR_MIGRATING_ADDRESS = 26, 352 QUIC_ERROR_MIGRATING_ADDRESS = 26,
353 // There was an error while writing the packet. 353 // There was an error while writing to the socket.
354 QUIC_PACKET_WRITE_ERROR = 27, 354 QUIC_PACKET_WRITE_ERROR = 27,
355 // There was an error while reading from the socket.
356 QUIC_PACKET_READ_ERROR = 51,
355 357
356 358
357 // Crypto errors. 359 // Crypto errors.
358 360
359 // Hanshake failed. 361 // Hanshake failed.
360 QUIC_HANDSHAKE_FAILED = 28, 362 QUIC_HANDSHAKE_FAILED = 28,
361 // Handshake message contained out of order tags. 363 // Handshake message contained out of order tags.
362 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, 364 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29,
363 // Handshake message contained too many entries. 365 // Handshake message contained too many entries.
364 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, 366 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30,
(...skipping 26 matching lines...) Expand all
391 QUIC_PROOF_INVALID = 42, 393 QUIC_PROOF_INVALID = 42,
392 // A crypto message was received with a duplicate tag. 394 // A crypto message was received with a duplicate tag.
393 QUIC_CRYPTO_DUPLICATE_TAG = 43, 395 QUIC_CRYPTO_DUPLICATE_TAG = 43,
394 // A crypto message was received with the wrong encryption level (i.e. it 396 // A crypto message was received with the wrong encryption level (i.e. it
395 // should have been encrypted but was not.) 397 // should have been encrypted but was not.)
396 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44, 398 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44,
397 // The server config for a server has expired. 399 // The server config for a server has expired.
398 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45, 400 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45,
399 401
400 // No error. Used as bound while iterating. 402 // No error. Used as bound while iterating.
401 QUIC_LAST_ERROR = 49, 403 QUIC_LAST_ERROR = 52,
402 }; 404 };
403 405
404 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { 406 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
405 QuicPacketPublicHeader(); 407 QuicPacketPublicHeader();
406 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); 408 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other);
407 ~QuicPacketPublicHeader(); 409 ~QuicPacketPublicHeader();
408 410
409 // Universal header. All QuicPacket headers will have a guid and public flags. 411 // Universal header. All QuicPacket headers will have a guid and public flags.
410 QuicGuid guid; 412 QuicGuid guid;
411 QuicGuidLength guid_length; 413 QuicGuidLength guid_length;
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 NET_EXPORT_PRIVATE friend std::ostream& operator<<( 858 NET_EXPORT_PRIVATE friend std::ostream& operator<<(
857 std::ostream& os, const QuicConsumedData& s); 859 std::ostream& os, const QuicConsumedData& s);
858 860
859 size_t bytes_consumed; 861 size_t bytes_consumed;
860 bool fin_consumed; 862 bool fin_consumed;
861 }; 863 };
862 864
863 } // namespace net 865 } // namespace net
864 866
865 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 867 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698