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/quic_utils.h" | 5 #include "net/quic/core/quic_utils.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/containers/adapters.h" | 13 #include "base/containers/adapters.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "net/base/ip_address.h" | 18 #include "net/base/ip_address.h" |
19 #include "net/quic/quic_flags.h" | 19 #include "net/quic/core/quic_flags.h" |
20 #include "net/quic/quic_write_blocked_list.h" | 20 #include "net/quic/core/quic_write_blocked_list.h" |
21 | 21 |
22 using base::StringPiece; | 22 using base::StringPiece; |
23 using std::string; | 23 using std::string; |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 namespace { | 26 namespace { |
27 | 27 |
28 // We know that >= GCC 4.8 and Clang have a __uint128_t intrinsic. Other | 28 // We know that >= GCC 4.8 and Clang have a __uint128_t intrinsic. Other |
29 // compilers don't necessarily, notably MSVC. | 29 // compilers don't necessarily, notably MSVC. |
30 #if defined(__x86_64__) && \ | 30 #if defined(__x86_64__) && \ |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 bytes_remaining -= line_bytes; | 565 bytes_remaining -= line_bytes; |
566 offset += line_bytes; | 566 offset += line_bytes; |
567 p += line_bytes; | 567 p += line_bytes; |
568 s += '\n'; | 568 s += '\n'; |
569 } | 569 } |
570 return s; | 570 return s; |
571 } | 571 } |
572 | 572 |
573 } // namespace net | 573 } // namespace net |
OLD | NEW |