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

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

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/common/media/media_stream_options.cc ('k') | content/public/common/media_stream_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/media_stream_request.h
diff --git a/content/public/common/media_stream_request.h b/content/public/common/media_stream_request.h
index b383a31bb2c659f202b94d70c3da68676fa503cd..ccd868f39ff7e523666bd8a4807d4d933aaf01d6 100644
--- a/content/public/common/media_stream_request.h
+++ b/content/public/common/media_stream_request.h
@@ -17,12 +17,24 @@ namespace content {
// Types of media streams.
enum MediaStreamDeviceType {
- MEDIA_STREAM_DEVICE_TYPE_NO_SERVICE = 0,
- MEDIA_STREAM_DEVICE_TYPE_AUDIO_CAPTURE,
- MEDIA_STREAM_DEVICE_TYPE_VIDEO_CAPTURE,
- NUM_MEDIA_STREAM_DEVICE_TYPES
+ MEDIA_NO_SERVICE = 0,
+
+ // A device provided by the operating system (e.g., webcam input).
+ MEDIA_DEVICE_AUDIO_CAPTURE,
+ MEDIA_DEVICE_VIDEO_CAPTURE,
+
+ // Mirroring of a browser tab.
+ MEDIA_TAB_AUDIO_CAPTURE,
+ MEDIA_TAB_VIDEO_CAPTURE,
+
+ NUM_MEDIA_TYPES
};
+// Convenience predicates to determine whether the given type represents some
+// audio or some video device.
+CONTENT_EXPORT bool IsAudioMediaType(MediaStreamDeviceType type);
+CONTENT_EXPORT bool IsVideoMediaType(MediaStreamDeviceType type);
+
// TODO(xians): Change the structs to classes.
// Represents one device in a request for media stream(s).
struct CONTENT_EXPORT MediaStreamDevice {
« no previous file with comments | « content/common/media/media_stream_options.cc ('k') | content/public/common/media_stream_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698