Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 476 // another stream). | 476 // another stream). |
| 477 QUIC_REFUSED_STREAM, | 477 QUIC_REFUSED_STREAM, |
| 478 // Invalid URL in PUSH_PROMISE request header. | 478 // Invalid URL in PUSH_PROMISE request header. |
| 479 QUIC_INVALID_PROMISE_URL, | 479 QUIC_INVALID_PROMISE_URL, |
| 480 // Server is not authoritative for this URL. | 480 // Server is not authoritative for this URL. |
| 481 QUIC_UNAUTHORIZED_PROMISE_URL, | 481 QUIC_UNAUTHORIZED_PROMISE_URL, |
| 482 // Can't have more than one active PUSH_PROMISE per URL. | 482 // Can't have more than one active PUSH_PROMISE per URL. |
| 483 QUIC_DUPLICATE_PROMISE_URL, | 483 QUIC_DUPLICATE_PROMISE_URL, |
| 484 // Vary check failed. | 484 // Vary check failed. |
| 485 QUIC_PROMISE_VARY_MISMATCH, | 485 QUIC_PROMISE_VARY_MISMATCH, |
| 486 // Only GET and HEAD methods allowed. | |
| 487 QUIC_INVALID_PROMISE_METHOD, | |
|
Ryan Hamilton
2016/02/24 00:34:00
This can probably go in a stand alone CL (perhaps
Buck
2016/02/26 23:54:17
Done.
| |
| 486 // No error. Used as bound while iterating. | 488 // No error. Used as bound while iterating. |
| 487 QUIC_STREAM_LAST_ERROR, | 489 QUIC_STREAM_LAST_ERROR, |
| 488 }; | 490 }; |
| 489 | 491 |
| 490 // Because receiving an unknown QuicRstStreamErrorCode results in connection | 492 // Because receiving an unknown QuicRstStreamErrorCode results in connection |
| 491 // teardown, we use this to make sure any errors predating a given version are | 493 // teardown, we use this to make sure any errors predating a given version are |
| 492 // downgraded to the most appropriate existing error. | 494 // downgraded to the most appropriate existing error. |
| 493 NET_EXPORT_PRIVATE QuicRstStreamErrorCode | 495 NET_EXPORT_PRIVATE QuicRstStreamErrorCode |
| 494 AdjustErrorForVersion(QuicRstStreamErrorCode error_code, QuicVersion version); | 496 AdjustErrorForVersion(QuicRstStreamErrorCode error_code, QuicVersion version); |
| 495 | 497 |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1404 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1406 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1405 | 1407 |
| 1406 const struct iovec* iov; | 1408 const struct iovec* iov; |
| 1407 const int iov_count; | 1409 const int iov_count; |
| 1408 const size_t total_length; | 1410 const size_t total_length; |
| 1409 }; | 1411 }; |
| 1410 | 1412 |
| 1411 } // namespace net | 1413 } // namespace net |
| 1412 | 1414 |
| 1413 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1415 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |