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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 QUIC_VERSION_19 = 19, // Current version. | 268 QUIC_VERSION_19 = 19, // Current version. |
269 }; | 269 }; |
270 | 270 |
271 // This vector contains QUIC versions which we currently support. | 271 // This vector contains QUIC versions which we currently support. |
272 // This should be ordered such that the highest supported version is the first | 272 // This should be ordered such that the highest supported version is the first |
273 // element, with subsequent elements in descending order (versions can be | 273 // element, with subsequent elements in descending order (versions can be |
274 // skipped as necessary). | 274 // skipped as necessary). |
275 // | 275 // |
276 // IMPORTANT: if you are addding to this list, follow the instructions at | 276 // IMPORTANT: if you are addding to this list, follow the instructions at |
277 // http://sites/quic/adding-and-removing-versions | 277 // http://sites/quic/adding-and-removing-versions |
278 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_18, | 278 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_19, |
| 279 QUIC_VERSION_18, |
279 QUIC_VERSION_17, | 280 QUIC_VERSION_17, |
280 QUIC_VERSION_16, | 281 QUIC_VERSION_16, |
281 QUIC_VERSION_15}; | 282 QUIC_VERSION_15}; |
282 | 283 |
283 typedef std::vector<QuicVersion> QuicVersionVector; | 284 typedef std::vector<QuicVersion> QuicVersionVector; |
284 | 285 |
285 // Returns a vector of QUIC versions in kSupportedQuicVersions. | 286 // Returns a vector of QUIC versions in kSupportedQuicVersions. |
286 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); | 287 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); |
287 | 288 |
288 // QuicTag is written to and read from the wire, but we prefer to use | 289 // QuicTag is written to and read from the wire, but we prefer to use |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 WriteStatus status; | 1071 WriteStatus status; |
1071 union { | 1072 union { |
1072 int bytes_written; // only valid when status is OK | 1073 int bytes_written; // only valid when status is OK |
1073 int error_code; // only valid when status is ERROR | 1074 int error_code; // only valid when status is ERROR |
1074 }; | 1075 }; |
1075 }; | 1076 }; |
1076 | 1077 |
1077 } // namespace net | 1078 } // namespace net |
1078 | 1079 |
1079 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1080 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |