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_VERSIONS_H_ | 5 #ifndef NET_QUIC_QUIC_VERSIONS_H_ |
6 #define NET_QUIC_QUIC_VERSIONS_H_ | 6 #define NET_QUIC_QUIC_VERSIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "net/quic/core/quic_tag.h" |
11 #include "net/quic/core/quic_types.h" | 12 #include "net/quic/core/quic_types.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 // The available versions of QUIC. Guaranteed that the integer value of the enum | 16 // The available versions of QUIC. Guaranteed that the integer value of the enum |
16 // will match the version number. | 17 // will match the version number. |
17 // When adding a new version to this enum you should add it to | 18 // When adding a new version to this enum you should add it to |
18 // kSupportedQuicVersions (if appropriate), and also add a new case to the | 19 // kSupportedQuicVersions (if appropriate), and also add a new case to the |
19 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and | 20 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and |
20 // QuicVersionToString. | 21 // QuicVersionToString. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 NET_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version); | 76 NET_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version); |
76 | 77 |
77 // Returns comma separated list of string representations of QuicVersion enum | 78 // Returns comma separated list of string representations of QuicVersion enum |
78 // values in the supplied |versions| vector. | 79 // values in the supplied |versions| vector. |
79 NET_EXPORT_PRIVATE std::string QuicVersionVectorToString( | 80 NET_EXPORT_PRIVATE std::string QuicVersionVectorToString( |
80 const QuicVersionVector& versions); | 81 const QuicVersionVector& versions); |
81 | 82 |
82 } // namespace net | 83 } // namespace net |
83 | 84 |
84 #endif // NET_QUIC_QUIC_VERSIONS_H_ | 85 #endif // NET_QUIC_QUIC_VERSIONS_H_ |
OLD | NEW |