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

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: REBASE 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
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | content/renderer/media/media_stream_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..35fe2d8853f0b144d6abe235ecbd6167c161b6b5 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_DEVICE_AUDIO_CAPTURE ||
+ type == content::MEDIA_TAB_AUDIO_CAPTURE);
+}
+
+bool IsVideoMediaType(MediaStreamDeviceType type) {
+ return (type == content::MEDIA_DEVICE_VIDEO_CAPTURE ||
+ type == content::MEDIA_TAB_VIDEO_CAPTURE);
+}
+
MediaStreamDevice::MediaStreamDevice(
MediaStreamDeviceType type,
const std::string& device_id,
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | content/renderer/media/media_stream_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698