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_BLUETOOTH_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ | 6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 bool Send(IPC::Message* msg); | 60 bool Send(IPC::Message* msg); |
61 void OnMessageReceived(const IPC::Message& msg); | 61 void OnMessageReceived(const IPC::Message& msg); |
62 | 62 |
63 // Corresponding to WebBluetoothImpl methods. | 63 // Corresponding to WebBluetoothImpl methods. |
64 void requestDevice(int frame_routing_id, | 64 void requestDevice(int frame_routing_id, |
65 const blink::WebRequestDeviceOptions& options, | 65 const blink::WebRequestDeviceOptions& options, |
66 blink::WebBluetoothRequestDeviceCallbacks* callbacks); | 66 blink::WebBluetoothRequestDeviceCallbacks* callbacks); |
67 void connectGATT(int frame_routing_id, | 67 void connectGATT(int frame_routing_id, |
68 const blink::WebString& device_id, | 68 const blink::WebString& device_id, |
69 blink::WebBluetoothConnectGATTCallbacks* callbacks); | 69 blink::WebBluetoothConnectGATTCallbacks* callbacks); |
| 70 void disconnect(int frame_routing_id, const blink::WebString& device_id); |
70 void getPrimaryService( | 71 void getPrimaryService( |
71 int frame_routing_id, | 72 int frame_routing_id, |
72 const blink::WebString& device_id, | 73 const blink::WebString& device_id, |
73 const blink::WebString& service_uuid, | 74 const blink::WebString& service_uuid, |
74 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks); | 75 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks); |
75 | 76 |
76 void getCharacteristic( | 77 void getCharacteristic( |
77 int frame_routing_id, | 78 int frame_routing_id, |
78 const blink::WebString& service_instance_id, | 79 const blink::WebString& service_instance_id, |
79 const blink::WebString& characteristic_uuid, | 80 const blink::WebString& characteristic_uuid, |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // http://crbug.com/541388 | 261 // http://crbug.com/541388 |
261 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> | 262 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> |
262 active_characteristics_; | 263 active_characteristics_; |
263 | 264 |
264 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); | 265 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); |
265 }; | 266 }; |
266 | 267 |
267 } // namespace content | 268 } // namespace content |
268 | 269 |
269 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ | 270 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
OLD | NEW |