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

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: Fix webexposed test 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 } 897 }
898 898
899 VLOG(1) << "Device: " << device->GetName(); 899 VLOG(1) << "Device: " << device->GetName();
900 VLOG(1) << "UUIDs: "; 900 VLOG(1) << "UUIDs: ";
901 for (BluetoothUUID uuid : device->GetUUIDs()) 901 for (BluetoothUUID uuid : device->GetUUIDs())
902 VLOG(1) << "\t" << uuid.canonical_value(); 902 VLOG(1) << "\t" << uuid.canonical_value();
903 903
904 content::BluetoothDevice device_ipc( 904 content::BluetoothDevice device_ipc(
905 device->GetAddress(), // instance_id 905 device->GetAddress(), // instance_id
906 device->GetName(), // name 906 device->GetName(), // name
907 device->GetInquiryTxPower(), // tx_power
908 device->GetInquiryRSSI(), // rssi
907 device->GetBluetoothClass(), // device_class 909 device->GetBluetoothClass(), // device_class
908 device->GetVendorIDSource(), // vendor_id_source 910 device->GetVendorIDSource(), // vendor_id_source
909 device->GetVendorID(), // vendor_id 911 device->GetVendorID(), // vendor_id
910 device->GetProductID(), // product_id 912 device->GetProductID(), // product_id
911 device->GetDeviceID(), // product_version 913 device->GetDeviceID(), // product_version
912 device->IsPaired(), // paired 914 device->IsPaired(), // paired
913 content::BluetoothDevice::UUIDsFromBluetoothUUIDs( 915 content::BluetoothDevice::UUIDsFromBluetoothUUIDs(
914 device->GetUUIDs())); // uuids 916 device->GetUUIDs())); // uuids
915 RecordRequestDeviceOutcome(UMARequestDeviceOutcome::SUCCESS); 917 RecordRequestDeviceOutcome(UMARequestDeviceOutcome::SUCCESS);
916 Send(new BluetoothMsg_RequestDeviceSuccess(session->thread_id, 918 Send(new BluetoothMsg_RequestDeviceSuccess(session->thread_id,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1143 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1142 NOTIMPLEMENTED(); 1144 NOTIMPLEMENTED();
1143 } 1145 }
1144 1146
1145 void BluetoothDispatcherHost::ShowBluetoothAdapterOffLink() { 1147 void BluetoothDispatcherHost::ShowBluetoothAdapterOffLink() {
1146 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1148 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1147 NOTIMPLEMENTED(); 1149 NOTIMPLEMENTED();
1148 } 1150 }
1149 1151
1150 } // namespace content 1152 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698