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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 QUIC_MULTIPLE_TERMINATION_OFFSETS, | 342 QUIC_MULTIPLE_TERMINATION_OFFSETS, |
343 // We got bad payload and can not respond to it at the protocol level. | 343 // We got bad payload and can not respond to it at the protocol level. |
344 QUIC_BAD_APPLICATION_PAYLOAD, | 344 QUIC_BAD_APPLICATION_PAYLOAD, |
345 // Stream closed due to connection error. No reset frame is sent when this | 345 // Stream closed due to connection error. No reset frame is sent when this |
346 // happens. | 346 // happens. |
347 QUIC_STREAM_CONNECTION_ERROR, | 347 QUIC_STREAM_CONNECTION_ERROR, |
348 // GoAway frame sent. No more stream can be created. | 348 // GoAway frame sent. No more stream can be created. |
349 QUIC_STREAM_PEER_GOING_AWAY, | 349 QUIC_STREAM_PEER_GOING_AWAY, |
350 // The stream has been cancelled. | 350 // The stream has been cancelled. |
351 QUIC_STREAM_CANCELLED, | 351 QUIC_STREAM_CANCELLED, |
| 352 // Sending a RST to allow for proper flow control accounting. |
| 353 QUIC_RST_FLOW_CONTROL_ACCOUNTING, |
352 | 354 |
353 // No error. Used as bound while iterating. | 355 // No error. Used as bound while iterating. |
354 QUIC_STREAM_LAST_ERROR, | 356 QUIC_STREAM_LAST_ERROR, |
355 }; | 357 }; |
356 | 358 |
357 // These values must remain stable as they are uploaded to UMA histograms. | 359 // These values must remain stable as they are uploaded to UMA histograms. |
358 // To add a new error code, use the current value of QUIC_LAST_ERROR and | 360 // To add a new error code, use the current value of QUIC_LAST_ERROR and |
359 // increment QUIC_LAST_ERROR. | 361 // increment QUIC_LAST_ERROR. |
360 enum QuicErrorCode { | 362 enum QuicErrorCode { |
361 QUIC_NO_ERROR = 0, | 363 QUIC_NO_ERROR = 0, |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 WriteStatus status; | 1020 WriteStatus status; |
1019 union { | 1021 union { |
1020 int bytes_written; // only valid when status is OK | 1022 int bytes_written; // only valid when status is OK |
1021 int error_code; // only valid when status is ERROR | 1023 int error_code; // only valid when status is ERROR |
1022 }; | 1024 }; |
1023 }; | 1025 }; |
1024 | 1026 |
1025 } // namespace net | 1027 } // namespace net |
1026 | 1028 |
1027 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1029 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |