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

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

Issue 2412483004: relnote: Add a new RstStreamErrorCode for resetting streams due to push stream is unclaimed and tim… (Closed)
Patch Set: Created 4 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
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 <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 // Invalid URL in PUSH_PROMISE request header. 483 // Invalid URL in PUSH_PROMISE request header.
484 QUIC_INVALID_PROMISE_URL, 484 QUIC_INVALID_PROMISE_URL,
485 // Server is not authoritative for this URL. 485 // Server is not authoritative for this URL.
486 QUIC_UNAUTHORIZED_PROMISE_URL, 486 QUIC_UNAUTHORIZED_PROMISE_URL,
487 // Can't have more than one active PUSH_PROMISE per URL. 487 // Can't have more than one active PUSH_PROMISE per URL.
488 QUIC_DUPLICATE_PROMISE_URL, 488 QUIC_DUPLICATE_PROMISE_URL,
489 // Vary check failed. 489 // Vary check failed.
490 QUIC_PROMISE_VARY_MISMATCH, 490 QUIC_PROMISE_VARY_MISMATCH,
491 // Only GET and HEAD methods allowed. 491 // Only GET and HEAD methods allowed.
492 QUIC_INVALID_PROMISE_METHOD, 492 QUIC_INVALID_PROMISE_METHOD,
493 // The push stream is unclaimed and timed out.
494 QUIC_PUSH_STREAM_TIMED_OUT,
493 // No error. Used as bound while iterating. 495 // No error. Used as bound while iterating.
494 QUIC_STREAM_LAST_ERROR, 496 QUIC_STREAM_LAST_ERROR,
495 }; 497 };
496 // QUIC error codes are encoded to a single octet on-the-wire. 498 // QUIC error codes are encoded to a single octet on-the-wire.
497 static_assert(static_cast<int>(QUIC_STREAM_LAST_ERROR) <= 499 static_assert(static_cast<int>(QUIC_STREAM_LAST_ERROR) <=
498 std::numeric_limits<uint8_t>::max(), 500 std::numeric_limits<uint8_t>::max(),
499 "QuicErrorCode exceeds single octet"); 501 "QuicErrorCode exceeds single octet");
500 502
501 // Because receiving an unknown QuicRstStreamErrorCode results in connection 503 // Because receiving an unknown QuicRstStreamErrorCode results in connection
502 // teardown, we use this to make sure any errors predating a given version are 504 // teardown, we use this to make sure any errors predating a given version are
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1528 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1527 1529
1528 const struct iovec* iov; 1530 const struct iovec* iov;
1529 const int iov_count; 1531 const int iov_count;
1530 const size_t total_length; 1532 const size_t total_length;
1531 }; 1533 };
1532 1534
1533 } // namespace net 1535 } // namespace net
1534 1536
1535 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1537 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698