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

Unified Diff: content/renderer/bluetooth/bluetooth_type_converters.h

Issue 1922923002: bluetooth: Move requestDevice to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-request-device
Patch Set: Change ref to pointer Created 4 years, 7 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: 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_
« no previous file with comments | « content/renderer/bluetooth/bluetooth_message_filter.cc ('k') | content/renderer/bluetooth/bluetooth_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698