| 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 NOTREACHED(); | 1009 NOTREACHED(); |
| 1010 } | 1010 } |
| 1011 return a1.size() * CHAR_BIT; | 1011 return a1.size() * CHAR_BIT; |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 unsigned MaskPrefixLength(const IPAddressNumber& mask) { | 1014 unsigned MaskPrefixLength(const IPAddressNumber& mask) { |
| 1015 IPAddressNumber all_ones(mask.size(), 0xFF); | 1015 IPAddressNumber all_ones(mask.size(), 0xFF); |
| 1016 return CommonPrefixLength(mask, all_ones); | 1016 return CommonPrefixLength(mask, all_ones); |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 WifiAccessPointInfo::WifiAccessPointInfo() |
| 1020 : security(WIFI_SECURITY_UNKNOWN) { |
| 1021 } |
| 1022 |
| 1023 WifiAccessPointInfo::~WifiAccessPointInfo() { |
| 1024 } |
| 1025 |
| 1019 } // namespace net | 1026 } // namespace net |
| OLD | NEW |