// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef DEVICE_BLUETOOTH_PUBLIC_MOJOM_CONNECT_RESULT_TYPE_CONVERTER_H_ #define DEVICE_BLUETOOTH_PUBLIC_MOJOM_CONNECT_RESULT_TYPE_CONVERTER_H_ #include "base/notreached.h" #include "device/bluetooth/bluetooth_device.h" #include "device/bluetooth/public/mojom/adapter.mojom.h" #include "mojo/public/cpp/bindings/type_converter.h" namespace mojo { // TypeConverter to translate from // device::BluetoothDevice::ConnectErrorCode to bluetooth.mojom.ConnectResult. // TODO(crbug.com/40494280): Replace because TypeConverter is deprecated. template <> struct TypeConverter<bluetooth::mojom::ConnectResult, device::BluetoothDevice::ConnectErrorCode> { … }; } // namespace mojo #endif // DEVICE_BLUETOOTH_PUBLIC_MOJOM_CONNECT_RESULT_TYPE_CONVERTER_H_