| OLD | NEW |
| 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 #include "content/child/bluetooth/web_bluetooth_impl.h" | 5 #include "content/child/bluetooth/web_bluetooth_impl.h" |
| 6 | 6 |
| 7 #include "content/child/bluetooth/bluetooth_dispatcher.h" | 7 #include "content/child/bluetooth/bluetooth_dispatcher.h" |
| 8 #include "content/child/thread_safe_sender.h" | 8 #include "content/child/thread_safe_sender.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 void WebBluetoothImpl::getCharacteristic( | 37 void WebBluetoothImpl::getCharacteristic( |
| 38 const blink::WebString& service_instance_id, | 38 const blink::WebString& service_instance_id, |
| 39 const blink::WebString& characteristic_uuid, | 39 const blink::WebString& characteristic_uuid, |
| 40 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) { | 40 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) { |
| 41 GetDispatcher()->getCharacteristic(service_instance_id, characteristic_uuid, | 41 GetDispatcher()->getCharacteristic(service_instance_id, characteristic_uuid, |
| 42 callbacks); | 42 callbacks); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void WebBluetoothImpl::readValue( |
| 46 const blink::WebString& characteristic_instance_id, |
| 47 blink::WebBluetoothReadValueCallbacks* callbacks) { |
| 48 GetDispatcher()->readValue(characteristic_instance_id, callbacks); |
| 49 } |
| 50 |
| 45 BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() { | 51 BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() { |
| 46 return BluetoothDispatcher::GetOrCreateThreadSpecificInstance( | 52 return BluetoothDispatcher::GetOrCreateThreadSpecificInstance( |
| 47 thread_safe_sender_.get()); | 53 thread_safe_sender_.get()); |
| 48 } | 54 } |
| 49 | 55 |
| 50 } // namespace content | 56 } // namespace content |
| OLD | NEW |