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

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

Issue 2142813003: bluetooth: Avoid including non-blink mojo bindings in blink code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Go back to static cast Created 4 years, 5 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_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 5 #ifndef CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void requestDevice( 47 void requestDevice(
48 const blink::WebRequestDeviceOptions& options, 48 const blink::WebRequestDeviceOptions& options,
49 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; 49 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override;
50 void connect( 50 void connect(
51 const blink::WebString& device_id, 51 const blink::WebString& device_id,
52 blink::WebBluetoothDevice* device, 52 blink::WebBluetoothDevice* device,
53 blink::WebBluetoothRemoteGATTServerConnectCallbacks* callbacks) override; 53 blink::WebBluetoothRemoteGATTServerConnectCallbacks* callbacks) override;
54 void disconnect(const blink::WebString& device_id) override; 54 void disconnect(const blink::WebString& device_id) override;
55 void getPrimaryServices( 55 void getPrimaryServices(
56 const blink::WebString& device_id, 56 const blink::WebString& device_id,
57 blink::mojom::WebBluetoothGATTQueryQuantity quantity, 57 int32_t quantity,
Jeffrey Yasskin 2016/07/13 20:34:58 Could you comment what enum defines the values of
ortuno 2016/07/13 22:47:28 Done. What do you think?
58 const blink::WebString& services_uuid, 58 const blink::WebString& services_uuid,
59 blink::WebBluetoothGetPrimaryServicesCallbacks* callbacks) override; 59 blink::WebBluetoothGetPrimaryServicesCallbacks* callbacks) override;
60 void getCharacteristics( 60 void getCharacteristics(
61 const blink::WebString& service_instance_id, 61 const blink::WebString& service_instance_id,
62 blink::mojom::WebBluetoothGATTQueryQuantity quantity, 62 int32_t quantity,
63 const blink::WebString& characteristics_uuid, 63 const blink::WebString& characteristics_uuid,
64 blink::WebBluetoothGetCharacteristicsCallbacks* callbacks) override; 64 blink::WebBluetoothGetCharacteristicsCallbacks* callbacks) override;
65 void readValue(const blink::WebString& characteristic_instance_id, 65 void readValue(const blink::WebString& characteristic_instance_id,
66 blink::WebBluetoothReadValueCallbacks* callbacks) override; 66 blink::WebBluetoothReadValueCallbacks* callbacks) override;
67 void writeValue(const blink::WebString& characteristic_instance_id, 67 void writeValue(const blink::WebString& characteristic_instance_id,
68 const blink::WebVector<uint8_t>& value, 68 const blink::WebVector<uint8_t>& value,
69 blink::WebBluetoothWriteValueCallbacks*) override; 69 blink::WebBluetoothWriteValueCallbacks*) override;
70 void startNotifications( 70 void startNotifications(
71 const blink::WebString& characteristic_instance_id, 71 const blink::WebString& characteristic_instance_id,
72 blink::WebBluetoothNotificationsCallbacks*) override; 72 blink::WebBluetoothNotificationsCallbacks*) override;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 // Binding associated with |web_bluetooth_service_|. 146 // Binding associated with |web_bluetooth_service_|.
147 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; 147 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); 149 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
150 }; 150 };
151 151
152 } // namespace content 152 } // namespace content
153 153
154 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 154 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698