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 <iphlpapi.h> | 7 #include <iphlpapi.h> |
8 #include <wlanapi.h> | 8 #include <wlanapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/string_piece.h" | |
16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/strings/string_piece.h" |
17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "net/base/escape.h" | 22 #include "net/base/escape.h" |
23 #include "net/base/ip_endpoint.h" | 23 #include "net/base/ip_endpoint.h" |
24 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
25 | 25 |
26 namespace net { | 26 namespace net { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 case dot11_phy_type_erp: | 259 case dot11_phy_type_erp: |
260 return WIFI_PHY_LAYER_PROTOCOL_G; | 260 return WIFI_PHY_LAYER_PROTOCOL_G; |
261 case dot11_phy_type_ht: | 261 case dot11_phy_type_ht: |
262 return WIFI_PHY_LAYER_PROTOCOL_N; | 262 return WIFI_PHY_LAYER_PROTOCOL_N; |
263 default: | 263 default: |
264 return WIFI_PHY_LAYER_PROTOCOL_UNKNOWN; | 264 return WIFI_PHY_LAYER_PROTOCOL_UNKNOWN; |
265 } | 265 } |
266 } | 266 } |
267 | 267 |
268 } // namespace net | 268 } // namespace net |
OLD | NEW |