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

Unified Diff: components/arc/bluetooth/bluetooth_type_converters.h

Issue 2149713002: arc: bluetooth: Add SDP host side support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewind to the previous approach using generic attribute and type converter Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/bluetooth/bluetooth_type_converters.h
diff --git a/components/arc/bluetooth/bluetooth_type_converters.h b/components/arc/bluetooth/bluetooth_type_converters.h
index 5c282dae78b523e4538f03f2f11d93b259c444e0..bf5f52dada58ce7284713010971da7d058802490 100644
--- a/components/arc/bluetooth/bluetooth_type_converters.h
+++ b/components/arc/bluetooth/bluetooth_type_converters.h
@@ -49,6 +49,44 @@ struct TypeConverter<arc::mojom::BluetoothGattStatus,
const device::BluetoothGattService::GattErrorCode& error_code);
};
+template <>
+struct TypeConverter<arc::mojom::BluetoothSdpAttributePtr,
+ bluez::BluetoothServiceAttributeValueBlueZ> {
+ static arc::mojom::BluetoothSdpAttributePtr Convert(
+ const bluez::BluetoothServiceAttributeValueBlueZ& attr_bluez,
+ int layer);
+ static arc::mojom::BluetoothSdpAttributePtr Convert(
+ const bluez::BluetoothServiceAttributeValueBlueZ& attr_bluez) {
+ return Convert(attr_bluez, 0);
+ }
+};
+
+template <>
+struct TypeConverter<bluez::BluetoothServiceAttributeValueBlueZ,
+ arc::mojom::BluetoothSdpAttributePtr> {
+ static bluez::BluetoothServiceAttributeValueBlueZ Convert(
+ const arc::mojom::BluetoothSdpAttributePtr& attr,
+ int layer);
+ static bluez::BluetoothServiceAttributeValueBlueZ Convert(
+ const arc::mojom::BluetoothSdpAttributePtr& attr) {
+ return Convert(attr, 0);
+ }
+};
+
+template <>
+struct TypeConverter<arc::mojom::BluetoothSdpRecordPtr,
+ bluez::BluetoothServiceRecordBlueZ> {
+ static arc::mojom::BluetoothSdpRecordPtr Convert(
+ const bluez::BluetoothServiceRecordBlueZ& rcd_bluez);
+};
+
+template <>
+struct TypeConverter<bluez::BluetoothServiceRecordBlueZ,
+ arc::mojom::BluetoothSdpRecordPtr> {
+ static bluez::BluetoothServiceRecordBlueZ Convert(
+ const arc::mojom::BluetoothSdpRecordPtr& rcd);
+};
+
} // namespace mojo
#endif // COMPONENTS_ARC_BLUETOOTH_BLUETOOTH_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698