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 10 matching lines...) Expand all Loading... |
21 // specific BluetoothDispatcher. | 21 // specific BluetoothDispatcher. |
22 class CONTENT_EXPORT WebBluetoothImpl | 22 class CONTENT_EXPORT WebBluetoothImpl |
23 : NON_EXPORTED_BASE(public blink::WebBluetooth) { | 23 : NON_EXPORTED_BASE(public blink::WebBluetooth) { |
24 public: | 24 public: |
25 explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender); | 25 explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender); |
26 ~WebBluetoothImpl(); | 26 ~WebBluetoothImpl(); |
27 | 27 |
28 // blink::WebBluetooth interface: | 28 // blink::WebBluetooth interface: |
29 void requestDevice( | 29 void requestDevice( |
30 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; | 30 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; |
31 | |
32 void connectGATT(const blink::WebString& device_instance_id, | 31 void connectGATT(const blink::WebString& device_instance_id, |
33 blink::WebBluetoothConnectGATTCallbacks* callbacks) override; | 32 blink::WebBluetoothConnectGATTCallbacks* callbacks) override; |
34 | |
35 void getPrimaryService( | 33 void getPrimaryService( |
36 const blink::WebString& device_instance_id, | 34 const blink::WebString& device_instance_id, |
37 const blink::WebString& service_uuid, | 35 const blink::WebString& service_uuid, |
38 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; | 36 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; |
| 37 void getCharacteristic( |
| 38 const blink::WebString& service_instance_id, |
| 39 const blink::WebString& characteristic_uuid, |
| 40 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override; |
39 | 41 |
40 private: | 42 private: |
41 BluetoothDispatcher* GetDispatcher(); | 43 BluetoothDispatcher* GetDispatcher(); |
42 | 44 |
43 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 45 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
44 | 46 |
45 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 47 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
46 }; | 48 }; |
47 | 49 |
48 } // namespace content | 50 } // namespace content |
49 | 51 |
50 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 52 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
OLD | NEW |