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 #include "net/quic/core/quic_utils.h" | 5 #include "net/quic/core/quic_utils.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/containers/adapters.h" | 11 #include "base/containers/adapters.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "net/quic/core/quic_constants.h" | 13 #include "net/quic/core/quic_constants.h" |
14 #include "net/quic/core/quic_flags.h" | 14 #include "net/quic/platform/api/quic_flags.h" |
15 | 15 |
16 using std::string; | 16 using std::string; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 namespace { | 19 namespace { |
20 | 20 |
21 // We know that >= GCC 4.8 and Clang have a __uint128_t intrinsic. Other | 21 // We know that >= GCC 4.8 and Clang have a __uint128_t intrinsic. Other |
22 // compilers don't necessarily, notably MSVC. | 22 // compilers don't necessarily, notably MSVC. |
23 #if defined(__x86_64__) && \ | 23 #if defined(__x86_64__) && \ |
24 ((defined(__GNUC__) && \ | 24 ((defined(__GNUC__) && \ |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 // static | 211 // static |
212 bool QuicUtils::IsConnectionIdWireFormatBigEndian(Perspective perspective) { | 212 bool QuicUtils::IsConnectionIdWireFormatBigEndian(Perspective perspective) { |
213 return (perspective == Perspective::IS_CLIENT && | 213 return (perspective == Perspective::IS_CLIENT && |
214 FLAGS_quic_restart_flag_quic_big_endian_connection_id_client) || | 214 FLAGS_quic_restart_flag_quic_big_endian_connection_id_client) || |
215 (perspective == Perspective::IS_SERVER && | 215 (perspective == Perspective::IS_SERVER && |
216 FLAGS_quic_restart_flag_quic_big_endian_connection_id_server); | 216 FLAGS_quic_restart_flag_quic_big_endian_connection_id_server); |
217 } | 217 } |
218 | 218 |
219 } // namespace net | 219 } // namespace net |
OLD | NEW |