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

Unified Diff: content/common/media/media_devices.h

Issue 2350693002: Remove device enumeration, caching and monitoring from MediaStreamManager. (Closed)
Patch Set: latest hta@ comments Created 4 years, 3 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/media/media_devices.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_devices.h
diff --git a/content/common/media/media_devices.h b/content/common/media/media_devices.h
new file mode 100644
index 0000000000000000000000000000000000000000..39255d151a8808a5542cb59d8a697ff8dd734086
--- /dev/null
+++ b/content/common/media/media_devices.h
@@ -0,0 +1,39 @@
+// 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_COMMON_MEDIA_MEDIA_DEVICES_H_
+#define CONTENT_COMMON_MEDIA_MEDIA_DEVICES_H_
+
+#include <string>
+#include <vector>
+
+namespace content {
+
+enum MediaDeviceType {
+ MEDIA_DEVICE_TYPE_AUDIO_INPUT,
+ MEDIA_DEVICE_TYPE_VIDEO_INPUT,
+ MEDIA_DEVICE_TYPE_AUDIO_OUTPUT,
+ NUM_MEDIA_DEVICE_TYPES,
+};
+
+struct MediaDeviceInfo {
+ MediaDeviceInfo(const std::string& device_id,
+ const std::string& label,
+ const std::string& group_id);
+ std::string device_id;
+ std::string label;
+ std::string group_id;
+};
+
+using MediaDeviceInfoArray = std::vector<MediaDeviceInfo>;
+
+bool operator==(const MediaDeviceInfo& first, const MediaDeviceInfo& second);
+
+inline bool IsValidMediaDeviceType(MediaDeviceType type) {
+ return type >= 0 && type < NUM_MEDIA_DEVICE_TYPES;
+}
+
+} // namespace content
+
+#endif // CONTENT_COMMON_MEDIA_MEDIA_DEVICES_H_
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/media/media_devices.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698