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

Unified Diff: content/public/renderer/media_stream_utils.h

Issue 2710213005: Revert of Remove |remote| and |readonly| members of MediaStreamTrack (Closed)
Patch Set: Created 3 years, 10 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/renderer/media_stream_utils.h
diff --git a/content/public/renderer/media_stream_utils.h b/content/public/renderer/media_stream_utils.h
index 57ab3951c4b516106c3050c2331b82322dc985d1..c1e09376cb8a051683a5d2726729cf570885a3a5 100644
--- a/content/public/renderer/media_stream_utils.h
+++ b/content/public/renderer/media_stream_utils.h
@@ -27,8 +27,13 @@
// provided audio or video capturer source. A new WebMediaStreamTrack +
// MediaStreamTrack pair is created, connected to the source and is plugged into
// the WebMediaStream (|web_media_stream|).
+// |is_remote| should be true if the source of the data is not a local device.
+// |is_readonly| should be true if the format of the data cannot be changed by
+// MediaTrackConstraints.
CONTENT_EXPORT bool AddVideoTrackToMediaStream(
std::unique_ptr<media::VideoCapturerSource> video_source,
+ bool is_remote,
+ bool is_readonly,
blink::WebMediaStream* web_media_stream);
// |sample_rate|, |channel_layout|, and |frames_per_buffer| specify the audio
@@ -40,6 +45,8 @@
int sample_rate,
media::ChannelLayout channel_layout,
int frames_per_buffer,
+ bool is_remote,
+ bool is_readonly,
blink::WebMediaStream* web_media_stream);
// On success returns pointer to the current format of the given video track;
« no previous file with comments | « chrome/renderer/extensions/cast_streaming_native_handler.cc ('k') | content/public/renderer/media_stream_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698