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

Unified Diff: content/public/common/media_stream_request.cc

Issue 10912004: Begin adding support for tab mirroring via the MediaStream audio/video capturing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed MEDIA_USER_*_CAPTURE to MEDIA_*_DEVICE_CAPTURE, as suggested by wjia@. Created 8 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
Index: content/public/common/media_stream_request.cc
diff --git a/content/public/common/media_stream_request.cc b/content/public/common/media_stream_request.cc
index c516fe26200f22b7d348f74315ae1c4f86aa7e70..0d03d39a21661425abcfb94fbb227d784ba0527c 100644
--- a/content/public/common/media_stream_request.cc
+++ b/content/public/common/media_stream_request.cc
@@ -6,6 +6,16 @@
namespace content {
+bool IsAudioMediaType(MediaStreamDeviceType type) {
+ return (type == content::MEDIA_AUDIO_DEVICE_CAPTURE ||
+ type == content::MEDIA_TAB_AUDIO_CAPTURE);
+}
+
+bool IsVideoMediaType(MediaStreamDeviceType type) {
+ return (type == content::MEDIA_VIDEO_DEVICE_CAPTURE ||
+ type == content::MEDIA_TAB_VIDEO_CAPTURE);
+}
+
MediaStreamDevice::MediaStreamDevice(
MediaStreamDeviceType type,
const std::string& device_id,

Powered by Google App Engine
This is Rietveld 408576698