| 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/profiler/scoped_tracker.h" | 15 #include "base/profiler/scoped_tracker.h" |
| 16 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
| 21 #include "base/win/scoped_handle.h" | 21 #include "base/win/scoped_handle.h" |
| 22 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
| 23 #include "net/base/escape.h" | 23 #include "net/base/escape.h" |
| 24 #include "net/base/ip_endpoint.h" | 24 #include "net/base/ip_endpoint.h" |
| 25 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
| 26 #include "net/base/net_util_win.h" | 26 #include "net/base/network_interfaces_win.h" |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 | 28 |
| 29 namespace net { | 29 namespace net { |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // Converts Windows defined types to NetworkInterfaceType. | 33 // Converts Windows defined types to NetworkInterfaceType. |
| 34 NetworkChangeNotifier::ConnectionType GetNetworkInterfaceType(DWORD ifType) { | 34 NetworkChangeNotifier::ConnectionType GetNetworkInterfaceType(DWORD ifType) { |
| 35 // Bail out for pre-Vista versions of Windows which are documented to give | 35 // Bail out for pre-Vista versions of Windows which are documented to give |
| 36 // inaccurate results like returning Ethernet for WiFi. | 36 // inaccurate results like returning Ethernet for WiFi. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 scoped_ptr<ScopedWifiOptions> SetWifiOptions(int options) { | 326 scoped_ptr<ScopedWifiOptions> SetWifiOptions(int options) { |
| 327 return scoped_ptr<ScopedWifiOptions>(new WifiOptionSetter(options)); | 327 return scoped_ptr<ScopedWifiOptions>(new WifiOptionSetter(options)); |
| 328 } | 328 } |
| 329 | 329 |
| 330 std::string GetWifiSSID() { | 330 std::string GetWifiSSID() { |
| 331 NOTIMPLEMENTED(); | 331 NOTIMPLEMENTED(); |
| 332 return ""; | 332 return ""; |
| 333 } | 333 } |
| 334 | 334 |
| 335 } // namespace net | 335 } // namespace net |
| OLD | NEW |