| 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 #ifndef CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| 6 #define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 6 #define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void getPrimaryService( | 34 void getPrimaryService( |
| 35 const blink::WebString& device_instance_id, | 35 const blink::WebString& device_instance_id, |
| 36 const blink::WebString& service_uuid, | 36 const blink::WebString& service_uuid, |
| 37 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; | 37 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; |
| 38 void getCharacteristic( | 38 void getCharacteristic( |
| 39 const blink::WebString& service_instance_id, | 39 const blink::WebString& service_instance_id, |
| 40 const blink::WebString& characteristic_uuid, | 40 const blink::WebString& characteristic_uuid, |
| 41 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override; | 41 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override; |
| 42 void readValue(const blink::WebString& characteristic_instance_id, | 42 void readValue(const blink::WebString& characteristic_instance_id, |
| 43 blink::WebBluetoothReadValueCallbacks* callbacks) override; | 43 blink::WebBluetoothReadValueCallbacks* callbacks) override; |
| 44 void writeValue(const blink::WebString& characteristic_instance_id, |
| 45 const unsigned char* bytes, |
| 46 unsigned byteLength, |
| 47 blink::WebBluetoothWriteValueCallbacks*) override; |
| 44 | 48 |
| 45 private: | 49 private: |
| 46 BluetoothDispatcher* GetDispatcher(); | 50 BluetoothDispatcher* GetDispatcher(); |
| 47 | 51 |
| 48 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 52 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 49 | 53 |
| 50 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 54 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
| 51 }; | 55 }; |
| 52 | 56 |
| 53 } // namespace content | 57 } // namespace content |
| 54 | 58 |
| 55 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 59 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| OLD | NEW |