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

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

Issue 26471007: QUIC: don't ignore SetKey and SetNoncePrefix return values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with tip Created 7 years, 2 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
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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 QUIC_CRYPTO_TOO_MANY_REJECTS = 41, 399 QUIC_CRYPTO_TOO_MANY_REJECTS = 41,
400 // The client rejected the server's certificate chain or signature. 400 // The client rejected the server's certificate chain or signature.
401 QUIC_PROOF_INVALID = 42, 401 QUIC_PROOF_INVALID = 42,
402 // A crypto message was received with a duplicate tag. 402 // A crypto message was received with a duplicate tag.
403 QUIC_CRYPTO_DUPLICATE_TAG = 43, 403 QUIC_CRYPTO_DUPLICATE_TAG = 43,
404 // A crypto message was received with the wrong encryption level (i.e. it 404 // A crypto message was received with the wrong encryption level (i.e. it
405 // should have been encrypted but was not.) 405 // should have been encrypted but was not.)
406 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44, 406 QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT = 44,
407 // The server config for a server has expired. 407 // The server config for a server has expired.
408 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45, 408 QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45,
409 // We failed to setup the symmetric keys for a connection.
410 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53,
409 411
410 // No error. Used as bound while iterating. 412 // No error. Used as bound while iterating.
411 QUIC_LAST_ERROR = 53, 413 QUIC_LAST_ERROR = 54,
412 }; 414 };
413 415
414 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { 416 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
415 QuicPacketPublicHeader(); 417 QuicPacketPublicHeader();
416 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); 418 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other);
417 ~QuicPacketPublicHeader(); 419 ~QuicPacketPublicHeader();
418 420
419 // Universal header. All QuicPacket headers will have a guid and public flags. 421 // Universal header. All QuicPacket headers will have a guid and public flags.
420 QuicGuid guid; 422 QuicGuid guid;
421 QuicGuidLength guid_length; 423 QuicGuidLength guid_length;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 WriteStatus status; 891 WriteStatus status;
890 union { 892 union {
891 int bytes_written; // only valid when status is OK 893 int bytes_written; // only valid when status is OK
892 int error_code; // only valid when status is ERROR 894 int error_code; // only valid when status is ERROR
893 }; 895 };
894 }; 896 };
895 897
896 } // namespace net 898 } // namespace net
897 899
898 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 900 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698