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

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

Issue 1723723002: bluetooth: Implement Service.getCharacteristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Clean up Created 4 years, 10 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 blink::WebBluetoothRemoteGATTServerConnectCallbacks* callbacks) override; 42 blink::WebBluetoothRemoteGATTServerConnectCallbacks* callbacks) override;
43 void disconnect(const blink::WebString& device_id) override; 43 void disconnect(const blink::WebString& device_id) override;
44 void getPrimaryService( 44 void getPrimaryService(
45 const blink::WebString& device_id, 45 const blink::WebString& device_id,
46 const blink::WebString& service_uuid, 46 const blink::WebString& service_uuid,
47 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override; 47 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override;
48 void getCharacteristic( 48 void getCharacteristic(
49 const blink::WebString& service_instance_id, 49 const blink::WebString& service_instance_id,
50 const blink::WebString& characteristic_uuid, 50 const blink::WebString& characteristic_uuid,
51 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override; 51 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override;
52 void getCharacteristics(
53 const blink::WebString& service_instance_id,
54 const blink::WebString& characteristic_uuid,
55 blink::WebBluetoothGetCharacteristicsCallbacks* callbacks) override;
56
52 void readValue(const blink::WebString& characteristic_instance_id, 57 void readValue(const blink::WebString& characteristic_instance_id,
53 blink::WebBluetoothReadValueCallbacks* callbacks) override; 58 blink::WebBluetoothReadValueCallbacks* callbacks) override;
54 void writeValue(const blink::WebString& characteristic_instance_id, 59 void writeValue(const blink::WebString& characteristic_instance_id,
55 const blink::WebVector<uint8_t>& value, 60 const blink::WebVector<uint8_t>& value,
56 blink::WebBluetoothWriteValueCallbacks*) override; 61 blink::WebBluetoothWriteValueCallbacks*) override;
57 void startNotifications( 62 void startNotifications(
58 const blink::WebString& characteristic_instance_id, 63 const blink::WebString& characteristic_instance_id,
59 blink::WebBluetoothRemoteGATTCharacteristic* characteristic, 64 blink::WebBluetoothRemoteGATTCharacteristic* characteristic,
60 blink::WebBluetoothNotificationsCallbacks*) override; 65 blink::WebBluetoothNotificationsCallbacks*) override;
61 void stopNotifications( 66 void stopNotifications(
(...skipping 12 matching lines...) Expand all
74 79
75 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; 80 const scoped_refptr<ThreadSafeSender> thread_safe_sender_;
76 const int frame_routing_id_; 81 const int frame_routing_id_;
77 82
78 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); 83 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
79 }; 84 };
80 85
81 } // namespace content 86 } // namespace content
82 87
83 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 88 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698