Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(998)

Side by Side Diff: content/browser/geolocation/wifi_data_provider_win.cc

Issue 121033002: Update uses of UTF conversions in content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 return true; 513 return true;
514 } 514 }
515 515
516 bool GetNetworkData(const WLAN_BSS_ENTRY& bss_entry, 516 bool GetNetworkData(const WLAN_BSS_ENTRY& bss_entry,
517 AccessPointData* access_point_data) { 517 AccessPointData* access_point_data) {
518 // Currently we get only MAC address, signal strength and SSID. 518 // Currently we get only MAC address, signal strength and SSID.
519 DCHECK(access_point_data); 519 DCHECK(access_point_data);
520 access_point_data->mac_address = MacAddressAsString16(bss_entry.dot11Bssid); 520 access_point_data->mac_address = MacAddressAsString16(bss_entry.dot11Bssid);
521 access_point_data->radio_signal_strength = bss_entry.lRssi; 521 access_point_data->radio_signal_strength = bss_entry.lRssi;
522 // bss_entry.dot11Ssid.ucSSID is not null-terminated. 522 // bss_entry.dot11Ssid.ucSSID is not null-terminated.
523 UTF8ToUTF16(reinterpret_cast<const char*>(bss_entry.dot11Ssid.ucSSID), 523 base::UTF8ToUTF16(reinterpret_cast<const char*>(bss_entry.dot11Ssid.ucSSID),
524 static_cast<ULONG>(bss_entry.dot11Ssid.uSSIDLength), 524 static_cast<ULONG>(bss_entry.dot11Ssid.uSSIDLength),
525 &access_point_data->ssid); 525 &access_point_data->ssid);
526 // TODO(steveblock): Is it possible to get the following? 526 // TODO(steveblock): Is it possible to get the following?
527 // access_point_data->signal_to_noise 527 // access_point_data->signal_to_noise
528 // access_point_data->age 528 // access_point_data->age
529 // access_point_data->channel 529 // access_point_data->channel
530 return true; 530 return true;
531 } 531 }
532 532
533 bool UndefineDosDevice(const base::string16& device_name) { 533 bool UndefineDosDevice(const base::string16& device_name) {
534 // We remove only the mapping we use, that is \Device\<device_name>. 534 // We remove only the mapping we use, that is \Device\<device_name>.
535 base::string16 target_path = L"\\Device\\" + device_name; 535 base::string16 target_path = L"\\Device\\" + device_name;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 630
631 if (*path->rbegin() != L'\\') { 631 if (*path->rbegin() != L'\\') {
632 path->append(L"\\"); 632 path->append(L"\\");
633 } 633 }
634 DCHECK_EQ(L'\\', *path->rbegin()); 634 DCHECK_EQ(L'\\', *path->rbegin());
635 return true; 635 return true;
636 } 636 }
637 } // namespace 637 } // namespace
638 638
639 } // namespace content 639 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_mac.cc ('k') | content/browser/indexed_db/indexed_db_backing_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698