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

Side by Side Diff: content/browser/bluetooth/bluetooth_dispatcher_host.cc

Issue 1427653003: bluetooth: Implement TxPower and RSSI of BluetoothAdvertisementData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address scheib's comments Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // ID Not In Map Note: 5 // ID Not In Map Note:
6 // A service, characteristic, or descriptor ID not in the corresponding 6 // A service, characteristic, or descriptor ID not in the corresponding
7 // BluetoothDispatcherHost map [service_to_device_, characteristic_to_service_, 7 // BluetoothDispatcherHost map [service_to_device_, characteristic_to_service_,
8 // descriptor_to_characteristic_] implies a hostile renderer because a renderer 8 // descriptor_to_characteristic_] implies a hostile renderer because a renderer
9 // obtains the corresponding ID from this class and it will be added to the map 9 // obtains the corresponding ID from this class and it will be added to the map
10 // at that time. 10 // at that time.
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } 896 }
897 897
898 VLOG(1) << "Device: " << device->GetName(); 898 VLOG(1) << "Device: " << device->GetName();
899 VLOG(1) << "UUIDs: "; 899 VLOG(1) << "UUIDs: ";
900 for (BluetoothUUID uuid : device->GetUUIDs()) 900 for (BluetoothUUID uuid : device->GetUUIDs())
901 VLOG(1) << "\t" << uuid.canonical_value(); 901 VLOG(1) << "\t" << uuid.canonical_value();
902 902
903 content::BluetoothDevice device_ipc( 903 content::BluetoothDevice device_ipc(
904 device->GetAddress(), // id 904 device->GetAddress(), // id
905 device->GetName(), // name 905 device->GetName(), // name
906 device->GetInquiryTxPower(), // tx_power
907 device->GetInquiryRSSI(), // rssi
906 device->GetBluetoothClass(), // device_class 908 device->GetBluetoothClass(), // device_class
907 device->GetVendorIDSource(), // vendor_id_source 909 device->GetVendorIDSource(), // vendor_id_source
908 device->GetVendorID(), // vendor_id 910 device->GetVendorID(), // vendor_id
909 device->GetProductID(), // product_id 911 device->GetProductID(), // product_id
910 device->GetDeviceID(), // product_version 912 device->GetDeviceID(), // product_version
911 device->IsPaired(), // paired 913 device->IsPaired(), // paired
912 content::BluetoothDevice::UUIDsFromBluetoothUUIDs( 914 content::BluetoothDevice::UUIDsFromBluetoothUUIDs(
913 device->GetUUIDs())); // uuids 915 device->GetUUIDs())); // uuids
914 RecordRequestDeviceOutcome(UMARequestDeviceOutcome::SUCCESS); 916 RecordRequestDeviceOutcome(UMARequestDeviceOutcome::SUCCESS);
915 Send(new BluetoothMsg_RequestDeviceSuccess(session->thread_id, 917 Send(new BluetoothMsg_RequestDeviceSuccess(session->thread_id,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1140 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1139 NOTIMPLEMENTED(); 1141 NOTIMPLEMENTED();
1140 } 1142 }
1141 1143
1142 void BluetoothDispatcherHost::ShowBluetoothAdapterOffLink() { 1144 void BluetoothDispatcherHost::ShowBluetoothAdapterOffLink() {
1143 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1145 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1144 NOTIMPLEMENTED(); 1146 NOTIMPLEMENTED();
1145 } 1147 }
1146 1148
1147 } // namespace content 1149 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698