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

Side by Side Diff: content/renderer/bluetooth/web_bluetooth_impl.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_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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender); 32 explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender);
33 WebBluetoothImpl(ThreadSafeSender* thread_safe_sender, int frame_routing_id); 33 WebBluetoothImpl(ThreadSafeSender* thread_safe_sender, int frame_routing_id);
34 ~WebBluetoothImpl() override; 34 ~WebBluetoothImpl() override;
35 35
36 // blink::WebBluetooth interface: 36 // blink::WebBluetooth interface:
37 void requestDevice( 37 void requestDevice(
38 const blink::WebRequestDeviceOptions& options, 38 const blink::WebRequestDeviceOptions& options,
39 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; 39 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override;
40 void connectGATT(const blink::WebString& device_id, 40 void connectGATT(const blink::WebString& device_id,
41 blink::WebBluetoothConnectGATTCallbacks* callbacks) override; 41 blink::WebBluetoothConnectGATTCallbacks* callbacks) override;
42 void disconnect(const blink::WebString& device_id) override;
42 void getPrimaryService( 43 void getPrimaryService(
43 const blink::WebString& device_id, 44 const blink::WebString& device_id,
44 const blink::WebString& service_uuid, 45 const blink::WebString& service_uuid,
45 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; 46 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override;
46 void getCharacteristic( 47 void getCharacteristic(
47 const blink::WebString& service_instance_id, 48 const blink::WebString& service_instance_id,
48 const blink::WebString& characteristic_uuid, 49 const blink::WebString& characteristic_uuid,
49 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override; 50 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override;
50 void readValue(const blink::WebString& characteristic_instance_id, 51 void readValue(const blink::WebString& characteristic_instance_id,
51 blink::WebBluetoothReadValueCallbacks* callbacks) override; 52 blink::WebBluetoothReadValueCallbacks* callbacks) override;
(...skipping 18 matching lines...) Expand all
70 71
71 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; 72 const scoped_refptr<ThreadSafeSender> thread_safe_sender_;
72 const int frame_routing_id_; 73 const int frame_routing_id_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); 75 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
75 }; 76 };
76 77
77 } // namespace content 78 } // namespace content
78 79
79 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 80 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/bluetooth/bluetooth_dispatcher.cc ('k') | content/renderer/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698