Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: content/renderer/bluetooth/bluetooth_dispatcher.h

Issue 1527853002: bluetooth: Add disconnect function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-device-identifier
Patch Set: Fix test that fails after upstream change. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/bluetooth/bluetooth_messages.h ('k') | content/renderer/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698