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

Side by Side Diff: net/quic/core/quic_utils.cc

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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
« no previous file with comments | « net/quic/core/quic_types.h ('k') | net/quic/core/quic_version_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_types.h ('k') | net/quic/core/quic_version_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698