Index: content/common/media/media_devices.cc |
diff --git a/content/common/media/media_devices.cc b/content/common/media/media_devices.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c4bb498a656a1438c2f2df866b22c33cda44213c |
--- /dev/null |
+++ b/content/common/media/media_devices.cc |
@@ -0,0 +1,18 @@ |
+// 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. |
+ |
+#include "content/common/media/media_devices.h" |
+ |
+namespace content { |
+ |
+MediaDeviceInfo::MediaDeviceInfo(const std::string& device_id, |
+ const std::string& label, |
+ const std::string& group_id) |
+ : device_id(device_id), label(label), group_id(group_id) {} |
+ |
+bool operator==(const MediaDeviceInfo& first, const MediaDeviceInfo& second) { |
+ return first.device_id == second.device_id && first.label == second.label; |
+} |
+ |
+} // namespace content |