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 27 matching lines...) Expand all Loading... |
38 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; | 38 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; |
39 void getCharacteristic( | 39 void getCharacteristic( |
40 const blink::WebString& service_instance_id, | 40 const blink::WebString& service_instance_id, |
41 const blink::WebString& characteristic_uuid, | 41 const blink::WebString& characteristic_uuid, |
42 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override; | 42 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override; |
43 void readValue(const blink::WebString& characteristic_instance_id, | 43 void readValue(const blink::WebString& characteristic_instance_id, |
44 blink::WebBluetoothReadValueCallbacks* callbacks) override; | 44 blink::WebBluetoothReadValueCallbacks* callbacks) override; |
45 void writeValue(const blink::WebString& characteristic_instance_id, | 45 void writeValue(const blink::WebString& characteristic_instance_id, |
46 const std::vector<uint8_t>& value, | 46 const std::vector<uint8_t>& value, |
47 blink::WebBluetoothWriteValueCallbacks*) override; | 47 blink::WebBluetoothWriteValueCallbacks*) override; |
| 48 void startNotifications( |
| 49 const blink::WebString& characteristic_instance_id, |
| 50 blink::WebBluetoothStartNotificationsCallbacks*) override; |
| 51 void stopNotifications( |
| 52 const blink::WebString& characteristic_instance_id, |
| 53 blink::WebBluetoothStopNotificationsCallbacks*) override; |
48 | 54 |
49 private: | 55 private: |
50 BluetoothDispatcher* GetDispatcher(); | 56 BluetoothDispatcher* GetDispatcher(); |
51 | 57 |
52 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 58 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
53 const int frame_routing_id_; | 59 const int frame_routing_id_; |
54 | 60 |
55 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 61 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
56 }; | 62 }; |
57 | 63 |
58 } // namespace content | 64 } // namespace content |
59 | 65 |
60 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 66 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
OLD | NEW |