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/base/net_util.h" | 5 #include "net/base/net_util.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "base/lazy_instance.h" | 38 #include "base/lazy_instance.h" |
39 #include "base/logging.h" | 39 #include "base/logging.h" |
40 #include "base/strings/string_number_conversions.h" | 40 #include "base/strings/string_number_conversions.h" |
41 #include "base/strings/string_piece.h" | 41 #include "base/strings/string_piece.h" |
42 #include "base/strings/string_split.h" | 42 #include "base/strings/string_split.h" |
43 #include "base/strings/string_util.h" | 43 #include "base/strings/string_util.h" |
44 #include "base/strings/stringprintf.h" | 44 #include "base/strings/stringprintf.h" |
45 #include "base/strings/utf_string_conversions.h" | 45 #include "base/strings/utf_string_conversions.h" |
46 #include "base/sys_byteorder.h" | 46 #include "base/sys_byteorder.h" |
47 #include "base/values.h" | 47 #include "base/values.h" |
48 #include "url/gurl.h" | |
49 #include "url/url_canon.h" | |
50 #include "url/url_canon_ip.h" | |
51 #include "url/url_parse.h" | |
52 #include "net/base/dns_util.h" | 48 #include "net/base/dns_util.h" |
53 #include "net/base/net_module.h" | 49 #include "net/base/net_module.h" |
54 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 50 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
55 #include "net/grit/net_resources.h" | 51 #include "net/grit/net_resources.h" |
56 #include "net/http/http_content_disposition.h" | 52 #include "net/http/http_content_disposition.h" |
| 53 #include "url/gurl.h" |
| 54 #include "url/third_party/mozilla/url_parse.h" |
| 55 #include "url/url_canon.h" |
| 56 #include "url/url_canon_ip.h" |
57 | 57 |
58 #if defined(OS_ANDROID) | 58 #if defined(OS_ANDROID) |
59 #include "net/android/network_library.h" | 59 #include "net/android/network_library.h" |
60 #endif | 60 #endif |
61 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
62 #include "net/base/winsock_init.h" | 62 #include "net/base/winsock_init.h" |
63 #endif | 63 #endif |
64 | 64 |
65 namespace net { | 65 namespace net { |
66 | 66 |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 | 1089 |
1090 unsigned MaskPrefixLength(const IPAddressNumber& mask) { | 1090 unsigned MaskPrefixLength(const IPAddressNumber& mask) { |
1091 IPAddressNumber all_ones(mask.size(), 0xFF); | 1091 IPAddressNumber all_ones(mask.size(), 0xFF); |
1092 return CommonPrefixLength(mask, all_ones); | 1092 return CommonPrefixLength(mask, all_ones); |
1093 } | 1093 } |
1094 | 1094 |
1095 ScopedWifiOptions::~ScopedWifiOptions() { | 1095 ScopedWifiOptions::~ScopedWifiOptions() { |
1096 } | 1096 } |
1097 | 1097 |
1098 } // namespace net | 1098 } // namespace net |
OLD | NEW |