| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Windows Vista uses the Native Wifi (WLAN) API for accessing WiFi cards. See | 5 // Windows Vista uses the Native Wifi (WLAN) API for accessing WiFi cards. See |
| 6 // http://msdn.microsoft.com/en-us/library/ms705945(VS.85).aspx. Windows XP | 6 // http://msdn.microsoft.com/en-us/library/ms705945(VS.85).aspx. Windows XP |
| 7 // Service Pack 3 (and Windows XP Service Pack 2, if upgraded with a hot fix) | 7 // Service Pack 3 (and Windows XP Service Pack 2, if upgraded with a hot fix) |
| 8 // also support a limited version of the WLAN API. See | 8 // also support a limited version of the WLAN API. See |
| 9 // http://msdn.microsoft.com/en-us/library/bb204766.aspx. The WLAN API uses | 9 // http://msdn.microsoft.com/en-us/library/bb204766.aspx. The WLAN API uses |
| 10 // wlanapi.h, which is not part of the SDK used by Gears, so is replicated | 10 // wlanapi.h, which is not part of the SDK used by Gears, so is replicated |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 WlanFreeMemory_function_ && | 238 WlanFreeMemory_function_ && |
| 239 WlanCloseHandle_function_); | 239 WlanCloseHandle_function_); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void WindowsWlanApi::LogWlanInterfaceCount(int count) { | 242 void WindowsWlanApi::LogWlanInterfaceCount(int count) { |
| 243 UMA_HISTOGRAM_CUSTOM_COUNTS( | 243 UMA_HISTOGRAM_CUSTOM_COUNTS( |
| 244 "Net.Wifi.InterfaceCount", | 244 "Net.Wifi.InterfaceCount", |
| 245 count, | 245 count, |
| 246 1, | 246 1, |
| 247 5, | 247 5, |
| 248 5); | 248 6); |
| 249 } | 249 } |
| 250 | 250 |
| 251 bool WindowsWlanApi::GetAccessPointData( | 251 bool WindowsWlanApi::GetAccessPointData( |
| 252 WifiData::AccessPointDataSet* data) { | 252 WifiData::AccessPointDataSet* data) { |
| 253 DCHECK(data); | 253 DCHECK(data); |
| 254 | 254 |
| 255 // Get the handle to the WLAN API. | 255 // Get the handle to the WLAN API. |
| 256 DWORD negotiated_version; | 256 DWORD negotiated_version; |
| 257 HANDLE wlan_handle = NULL; | 257 HANDLE wlan_handle = NULL; |
| 258 // We could be executing on either Windows XP or Windows Vista, so use the | 258 // We could be executing on either Windows XP or Windows Vista, so use the |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 633 |
| 634 if (*path->rbegin() != L'\\') { | 634 if (*path->rbegin() != L'\\') { |
| 635 path->append(L"\\"); | 635 path->append(L"\\"); |
| 636 } | 636 } |
| 637 DCHECK_EQ(L'\\', *path->rbegin()); | 637 DCHECK_EQ(L'\\', *path->rbegin()); |
| 638 return true; | 638 return true; |
| 639 } | 639 } |
| 640 } // namespace | 640 } // namespace |
| 641 | 641 |
| 642 } // namespace content | 642 } // namespace content |
| OLD | NEW |