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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 QUIC_VERSION_26 = 26, // In CHLO, send XLCT tag containing hash of leaf cert | 364 QUIC_VERSION_26 = 26, // In CHLO, send XLCT tag containing hash of leaf cert |
365 QUIC_VERSION_27 = 27, // Sends a nonce in the SHLO. | 365 QUIC_VERSION_27 = 27, // Sends a nonce in the SHLO. |
366 QUIC_VERSION_28 = 28, // Receiver can refuse to create a requested stream. | 366 QUIC_VERSION_28 = 28, // Receiver can refuse to create a requested stream. |
367 QUIC_VERSION_29 = 29, // Server and client honor QUIC_STREAM_NO_ERROR. | 367 QUIC_VERSION_29 = 29, // Server and client honor QUIC_STREAM_NO_ERROR. |
368 QUIC_VERSION_30 = 30, // Add server side support of cert transparency. | 368 QUIC_VERSION_30 = 30, // Add server side support of cert transparency. |
369 QUIC_VERSION_31 = 31, // Adds a hash of the client hello to crypto proof. | 369 QUIC_VERSION_31 = 31, // Adds a hash of the client hello to crypto proof. |
370 QUIC_VERSION_32 = 32, // FEC related fields are removed from wire format. | 370 QUIC_VERSION_32 = 32, // FEC related fields are removed from wire format. |
371 QUIC_VERSION_33 = 33, // Adds diversification nonces. | 371 QUIC_VERSION_33 = 33, // Adds diversification nonces. |
372 QUIC_VERSION_34 = 34, // Deprecates entropy, removes private flag from packet | 372 QUIC_VERSION_34 = 34, // Deprecates entropy, removes private flag from packet |
373 // header, uses new ack and stop waiting wire format. | 373 // header, uses new ack and stop waiting wire format. |
| 374 QUIC_VERSION_35 = 35, // Allows endpoints to independently set stream limit. |
374 }; | 375 }; |
375 | 376 |
376 // This vector contains QUIC versions which we currently support. | 377 // This vector contains QUIC versions which we currently support. |
377 // This should be ordered such that the highest supported version is the first | 378 // This should be ordered such that the highest supported version is the first |
378 // element, with subsequent elements in descending order (versions can be | 379 // element, with subsequent elements in descending order (versions can be |
379 // skipped as necessary). | 380 // skipped as necessary). |
380 // | 381 // |
381 // IMPORTANT: if you are adding to this list, follow the instructions at | 382 // IMPORTANT: if you are adding to this list, follow the instructions at |
382 // http://sites/quic/adding-and-removing-versions | 383 // http://sites/quic/adding-and-removing-versions |
383 static const QuicVersion kSupportedQuicVersions[] = { | 384 static const QuicVersion kSupportedQuicVersions[] = { |
384 QUIC_VERSION_34, QUIC_VERSION_33, QUIC_VERSION_32, QUIC_VERSION_31, | 385 QUIC_VERSION_35, QUIC_VERSION_34, QUIC_VERSION_33, QUIC_VERSION_32, |
385 QUIC_VERSION_30, QUIC_VERSION_29, QUIC_VERSION_28, QUIC_VERSION_27, | 386 QUIC_VERSION_31, QUIC_VERSION_30, QUIC_VERSION_29, QUIC_VERSION_28, |
386 QUIC_VERSION_26, QUIC_VERSION_25}; | 387 QUIC_VERSION_27, QUIC_VERSION_26, QUIC_VERSION_25}; |
387 | 388 |
388 typedef std::vector<QuicVersion> QuicVersionVector; | 389 typedef std::vector<QuicVersion> QuicVersionVector; |
389 | 390 |
390 // Returns a vector of QUIC versions in kSupportedQuicVersions. | 391 // Returns a vector of QUIC versions in kSupportedQuicVersions. |
391 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); | 392 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); |
392 | 393 |
393 // Returns a vector of QUIC versions from |versions| which exclude any versions | 394 // Returns a vector of QUIC versions from |versions| which exclude any versions |
394 // which are disabled by flags. | 395 // which are disabled by flags. |
395 NET_EXPORT_PRIVATE QuicVersionVector | 396 NET_EXPORT_PRIVATE QuicVersionVector |
396 FilterSupportedVersions(QuicVersionVector versions); | 397 FilterSupportedVersions(QuicVersionVector versions); |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1493 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1493 | 1494 |
1494 const struct iovec* iov; | 1495 const struct iovec* iov; |
1495 const int iov_count; | 1496 const int iov_count; |
1496 const size_t total_length; | 1497 const size_t total_length; |
1497 }; | 1498 }; |
1498 | 1499 |
1499 } // namespace net | 1500 } // namespace net |
1500 | 1501 |
1501 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1502 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |