| Index: content/renderer/bluetooth/bluetooth_type_converters.h
|
| diff --git a/content/renderer/bluetooth/bluetooth_type_converters.h b/content/renderer/bluetooth/bluetooth_type_converters.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..960c1f5cd7d5d960d6988f11a982b4f58c183656
|
| --- /dev/null
|
| +++ b/content/renderer/bluetooth/bluetooth_type_converters.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_RENDERER_BLUETOOTH_BLUETOOTH_TYPE_CONVERTERS_H_
|
| +#define CONTENT_RENDERER_BLUETOOTH_BLUETOOTH_TYPE_CONVERTERS_H_
|
| +
|
| +#include "mojo/public/cpp/bindings/type_converter.h"
|
| +#include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom.h"
|
| +
|
| +namespace blink {
|
| +struct WebBluetoothScanFilter;
|
| +struct WebRequestDeviceOptions;
|
| +}
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct TypeConverter<blink::mojom::WebBluetoothScanFilterPtr,
|
| + blink::WebBluetoothScanFilter> {
|
| + static blink::mojom::WebBluetoothScanFilterPtr Convert(
|
| + const blink::WebBluetoothScanFilter& web_filter);
|
| +};
|
| +
|
| +template <>
|
| +struct TypeConverter<blink::mojom::WebBluetoothRequestDeviceOptionsPtr,
|
| + blink::WebRequestDeviceOptions> {
|
| + static blink::mojom::WebBluetoothRequestDeviceOptionsPtr Convert(
|
| + const blink::WebRequestDeviceOptions& web_options);
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // CONTENT_RENDERER_BLUETOOTH_BLUETOOTH_TYPE_CONVERTERS_H_
|
|
|