| 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/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
| 20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
| 21 #include "googleurl/src/gurl.h" | |
| 22 #include "net/base/escape.h" | 21 #include "net/base/escape.h" |
| 23 #include "net/base/ip_endpoint.h" | 22 #include "net/base/ip_endpoint.h" |
| 24 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
| 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 | 27 |
| 28 bool FileURLToFilePath(const GURL& url, base::FilePath* file_path) { | 28 bool FileURLToFilePath(const GURL& url, base::FilePath* file_path) { |
| 29 *file_path = base::FilePath(); | 29 *file_path = base::FilePath(); |
| 30 std::wstring& file_path_str = const_cast<std::wstring&>(file_path->value()); | 30 std::wstring& file_path_str = const_cast<std::wstring&>(file_path->value()); |
| 31 file_path_str.clear(); | 31 file_path_str.clear(); |
| 32 | 32 |
| 33 if (!url.is_valid()) | 33 if (!url.is_valid()) |
| 34 return false; | 34 return false; |
| (...skipping 224 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 |