| 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 <limits> | 9 #include <limits> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 QUIC_SERVER_ERROR_PROCESSING_STREAM, | 272 QUIC_SERVER_ERROR_PROCESSING_STREAM, |
| 273 // We got two fin or reset offsets which did not match. | 273 // We got two fin or reset offsets which did not match. |
| 274 QUIC_MULTIPLE_TERMINATION_OFFSETS, | 274 QUIC_MULTIPLE_TERMINATION_OFFSETS, |
| 275 // We got bad payload and can not respond to it at the protocol level. | 275 // We got bad payload and can not respond to it at the protocol level. |
| 276 QUIC_BAD_APPLICATION_PAYLOAD, | 276 QUIC_BAD_APPLICATION_PAYLOAD, |
| 277 // Stream closed due to connection error. No reset frame is sent when this | 277 // Stream closed due to connection error. No reset frame is sent when this |
| 278 // happens. | 278 // happens. |
| 279 QUIC_STREAM_CONNECTION_ERROR, | 279 QUIC_STREAM_CONNECTION_ERROR, |
| 280 // GoAway frame sent. No more stream can be created. | 280 // GoAway frame sent. No more stream can be created. |
| 281 QUIC_STREAM_PEER_GOING_AWAY, | 281 QUIC_STREAM_PEER_GOING_AWAY, |
| 282 // The stream has been cancelled. |
| 283 QUIC_STREAM_CANCELLED, |
| 282 | 284 |
| 283 // No error. Used as bound while iterating. | 285 // No error. Used as bound while iterating. |
| 284 QUIC_STREAM_LAST_ERROR, | 286 QUIC_STREAM_LAST_ERROR, |
| 285 }; | 287 }; |
| 286 | 288 |
| 287 // These values must remain stable as they are uploaded to UMA histograms. | 289 // These values must remain stable as they are uploaded to UMA histograms. |
| 288 // To add a new error code, use the current value of QUIC_LAST_ERROR and | 290 // To add a new error code, use the current value of QUIC_LAST_ERROR and |
| 289 // increment QUIC_LAST_ERROR. | 291 // increment QUIC_LAST_ERROR. |
| 290 enum QuicErrorCode { | 292 enum QuicErrorCode { |
| 291 QUIC_NO_ERROR = 0, | 293 QUIC_NO_ERROR = 0, |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 NET_EXPORT_PRIVATE friend std::ostream& operator<<( | 856 NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
| 855 std::ostream& os, const QuicConsumedData& s); | 857 std::ostream& os, const QuicConsumedData& s); |
| 856 | 858 |
| 857 size_t bytes_consumed; | 859 size_t bytes_consumed; |
| 858 bool fin_consumed; | 860 bool fin_consumed; |
| 859 }; | 861 }; |
| 860 | 862 |
| 861 } // namespace net | 863 } // namespace net |
| 862 | 864 |
| 863 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 865 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |