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

Side by Side Diff: components/arc/bluetooth/arc_bluetooth_bridge.h

Issue 2511253002: arc: bluetooth: enable use_new_wrapper_types for bluetooth.mojom (Closed)
Patch Set: Rebase again Created 4 years, 1 month 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
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 5 #ifndef COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // Stop a local service. 256 // Stop a local service.
257 void StopService(int32_t service_handle, 257 void StopService(int32_t service_handle,
258 const StopServiceCallback& callback) override; 258 const StopServiceCallback& callback) override;
259 // Delete a local service. 259 // Delete a local service.
260 void DeleteService(int32_t service_handle, 260 void DeleteService(int32_t service_handle,
261 const DeleteServiceCallback& callback) override; 261 const DeleteServiceCallback& callback) override;
262 // Send value indication to a remote device. 262 // Send value indication to a remote device.
263 void SendIndication(int32_t attribute_handle, 263 void SendIndication(int32_t attribute_handle,
264 mojom::BluetoothAddressPtr address, 264 mojom::BluetoothAddressPtr address,
265 bool confirm, 265 bool confirm,
266 mojo::Array<uint8_t> value, 266 const std::vector<uint8_t>& value,
267 const SendIndicationCallback& callback) override; 267 const SendIndicationCallback& callback) override;
268 268
269 // Bluetooth Mojo host interface - Bluetooth SDP functions 269 // Bluetooth Mojo host interface - Bluetooth SDP functions
270 void GetSdpRecords(mojom::BluetoothAddressPtr remote_addr, 270 void GetSdpRecords(mojom::BluetoothAddressPtr remote_addr,
271 const device::BluetoothUUID& target_uuid) override; 271 const device::BluetoothUUID& target_uuid) override;
272 void CreateSdpRecord(mojom::BluetoothSdpRecordPtr record_mojo, 272 void CreateSdpRecord(mojom::BluetoothSdpRecordPtr record_mojo,
273 const CreateSdpRecordCallback& callback) override; 273 const CreateSdpRecordCallback& callback) override;
274 void RemoveSdpRecord(uint32_t service_handle, 274 void RemoveSdpRecord(uint32_t service_handle,
275 const RemoveSdpRecordCallback& callback) override; 275 const RemoveSdpRecordCallback& callback) override;
276 276
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 void OnStopLEListenError( 324 void OnStopLEListenError(
325 const StopLEListenCallback& callback, 325 const StopLEListenCallback& callback,
326 device::BluetoothAdvertisement::ErrorCode error_code); 326 device::BluetoothAdvertisement::ErrorCode error_code);
327 327
328 void OnGattNotifyStartDone( 328 void OnGattNotifyStartDone(
329 const RegisterForGattNotificationCallback& callback, 329 const RegisterForGattNotificationCallback& callback,
330 const std::string char_string_id, 330 const std::string char_string_id,
331 std::unique_ptr<device::BluetoothGattNotifySession> notify_session); 331 std::unique_ptr<device::BluetoothGattNotifySession> notify_session);
332 332
333 private: 333 private:
334 mojo::Array<mojom::BluetoothPropertyPtr> GetDeviceProperties( 334 std::vector<mojom::BluetoothPropertyPtr> GetDeviceProperties(
335 mojom::BluetoothPropertyType type, 335 mojom::BluetoothPropertyType type,
336 const device::BluetoothDevice* device) const; 336 const device::BluetoothDevice* device) const;
337 mojo::Array<mojom::BluetoothPropertyPtr> GetAdapterProperties( 337 std::vector<mojom::BluetoothPropertyPtr> GetAdapterProperties(
338 mojom::BluetoothPropertyType type) const; 338 mojom::BluetoothPropertyType type) const;
339 mojo::Array<mojom::BluetoothAdvertisingDataPtr> GetAdvertisingData( 339 std::vector<mojom::BluetoothAdvertisingDataPtr> GetAdvertisingData(
340 const device::BluetoothDevice* device) const; 340 const device::BluetoothDevice* device) const;
341 341
342 void SendCachedDevicesFound() const; 342 void SendCachedDevicesFound() const;
343 343
344 device::BluetoothRemoteGattCharacteristic* FindGattCharacteristic( 344 device::BluetoothRemoteGattCharacteristic* FindGattCharacteristic(
345 mojom::BluetoothAddressPtr remote_addr, 345 mojom::BluetoothAddressPtr remote_addr,
346 mojom::BluetoothGattServiceIDPtr service_id, 346 mojom::BluetoothGattServiceIDPtr service_id,
347 mojom::BluetoothGattIDPtr char_id) const; 347 mojom::BluetoothGattIDPtr char_id) const;
348 348
349 device::BluetoothRemoteGattDescriptor* FindGattDescriptor( 349 device::BluetoothRemoteGattDescriptor* FindGattDescriptor(
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 482
483 // WeakPtrFactory to use for callbacks. 483 // WeakPtrFactory to use for callbacks.
484 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; 484 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_;
485 485
486 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); 486 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge);
487 }; 487 };
488 488
489 } // namespace arc 489 } // namespace arc
490 490
491 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 491 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
OLDNEW
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698