Index: content/common/media/media_devices_param_traits.h |
diff --git a/content/common/media/media_devices_param_traits.h b/content/common/media/media_devices_param_traits.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ed0830c108f8f092abfac4fd78cabdfcec8de590 |
--- /dev/null |
+++ b/content/common/media/media_devices_param_traits.h |
@@ -0,0 +1,21 @@ |
+// 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. |
+ |
+// Multiply-included IPC traits file, hence no include guard. |
+ |
+#include "content/common/content_export.h" |
+#include "content/common/media/media_devices.h" |
+#include "ipc/ipc_message_macros.h" |
+ |
+#undef IPC_MESSAGE_EXPORT |
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
+ |
+IPC_ENUM_TRAITS_MAX_VALUE(content::MediaDeviceType, |
+ content::NUM_MEDIA_DEVICE_TYPES - 1) |
+ |
+IPC_STRUCT_TRAITS_BEGIN(content::MediaDeviceInfo) |
+ IPC_STRUCT_TRAITS_MEMBER(device_id) |
+ IPC_STRUCT_TRAITS_MEMBER(label) |
+ IPC_STRUCT_TRAITS_MEMBER(group_id) |
+IPC_STRUCT_TRAITS_END() |