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

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

Issue 2747443002: Landing recent QUIC changes until Sun Mar 5 09:18:09 2017 +0000 (Closed)
Patch Set: Created 3 years, 9 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_CORE_QUIC_ERROR_CODES_H_ 5 #ifndef NET_QUIC_CORE_QUIC_ERROR_CODES_H_
6 #define NET_QUIC_CORE_QUIC_ERROR_CODES_H_ 6 #define NET_QUIC_CORE_QUIC_ERROR_CODES_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <limits> 9 #include <limits>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // There was an error encountered migrating port only. 146 // There was an error encountered migrating port only.
147 QUIC_ERROR_MIGRATING_PORT = 86, 147 QUIC_ERROR_MIGRATING_PORT = 86,
148 // There was an error while writing to the socket. 148 // There was an error while writing to the socket.
149 QUIC_PACKET_WRITE_ERROR = 27, 149 QUIC_PACKET_WRITE_ERROR = 27,
150 // There was an error while reading from the socket. 150 // There was an error while reading from the socket.
151 QUIC_PACKET_READ_ERROR = 51, 151 QUIC_PACKET_READ_ERROR = 51,
152 // We received a STREAM_FRAME with no data and no fin flag set. 152 // We received a STREAM_FRAME with no data and no fin flag set.
153 QUIC_EMPTY_STREAM_FRAME_NO_FIN = 50, 153 QUIC_EMPTY_STREAM_FRAME_NO_FIN = 50,
154 // We received invalid data on the headers stream. 154 // We received invalid data on the headers stream.
155 QUIC_INVALID_HEADERS_STREAM_DATA = 56, 155 QUIC_INVALID_HEADERS_STREAM_DATA = 56,
156 // Invalid data on the headers stream received because of decompression
157 // failure.
158 QUIC_HEADERS_STREAM_DATA_DECOMPRESS_FAILURE = 97,
156 // The peer received too much data, violating flow control. 159 // The peer received too much data, violating flow control.
157 QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA = 59, 160 QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA = 59,
158 // The peer sent too much data, violating flow control. 161 // The peer sent too much data, violating flow control.
159 QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA = 63, 162 QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA = 63,
160 // The peer received an invalid flow control window. 163 // The peer received an invalid flow control window.
161 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64, 164 QUIC_FLOW_CONTROL_INVALID_WINDOW = 64,
162 // The connection has been IP pooled into an existing connection. 165 // The connection has been IP pooled into an existing connection.
163 QUIC_CONNECTION_IP_POOLED = 62, 166 QUIC_CONNECTION_IP_POOLED = 62,
164 // The connection has too many outstanding sent packets. 167 // The connection has too many outstanding sent packets.
165 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68, 168 QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS = 68,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 QUIC_TOO_MANY_FRAME_GAPS = 93, 269 QUIC_TOO_MANY_FRAME_GAPS = 93,
267 270
268 // Sequencer buffer get into weird state where continuing read/write will lead 271 // Sequencer buffer get into weird state where continuing read/write will lead
269 // to crash. 272 // to crash.
270 QUIC_STREAM_SEQUENCER_INVALID_STATE = 95, 273 QUIC_STREAM_SEQUENCER_INVALID_STATE = 95,
271 274
272 // Connection closed because of server hits max number of sessions allowed. 275 // Connection closed because of server hits max number of sessions allowed.
273 QUIC_TOO_MANY_SESSIONS_ON_SERVER = 96, 276 QUIC_TOO_MANY_SESSIONS_ON_SERVER = 96,
274 277
275 // No error. Used as bound while iterating. 278 // No error. Used as bound while iterating.
276 QUIC_LAST_ERROR = 97, 279 QUIC_LAST_ERROR = 98,
277 }; 280 };
278 // QuicErrorCodes is encoded as a single octet on-the-wire. 281 // QuicErrorCodes is encoded as a single octet on-the-wire.
279 static_assert(static_cast<int>(QUIC_LAST_ERROR) <= 282 static_assert(static_cast<int>(QUIC_LAST_ERROR) <=
280 std::numeric_limits<uint8_t>::max(), 283 std::numeric_limits<uint8_t>::max(),
281 "QuicErrorCode exceeds single octet"); 284 "QuicErrorCode exceeds single octet");
282 285
283 // Returns the name of the QuicRstStreamErrorCode as a char* 286 // Returns the name of the QuicRstStreamErrorCode as a char*
284 QUIC_EXPORT_PRIVATE const char* QuicRstStreamErrorCodeToString( 287 QUIC_EXPORT_PRIVATE const char* QuicRstStreamErrorCodeToString(
285 QuicRstStreamErrorCode error); 288 QuicRstStreamErrorCode error);
286 289
287 // Returns the name of the QuicErrorCode as a char* 290 // Returns the name of the QuicErrorCode as a char*
288 QUIC_EXPORT_PRIVATE const char* QuicErrorCodeToString(QuicErrorCode error); 291 QUIC_EXPORT_PRIVATE const char* QuicErrorCodeToString(QuicErrorCode error);
289 292
290 } // namespace net 293 } // namespace net
291 294
292 #endif // NET_QUIC_CORE_QUIC_ERROR_CODES_H_ 295 #endif // NET_QUIC_CORE_QUIC_ERROR_CODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698