| Index: content/public/renderer/media_stream_api.h
|
| diff --git a/content/public/renderer/media_stream_api.h b/content/public/renderer/media_stream_api.h
|
| index dfb2aaf6ea1161d61c513b8634dedc460f98df54..d82838fe9f2d5ed63f39279d4825913f33d60c94 100644
|
| --- a/content/public/renderer/media_stream_api.h
|
| +++ b/content/public/renderer/media_stream_api.h
|
| @@ -11,6 +11,7 @@
|
|
|
| namespace blink {
|
| class WebMediaStream;
|
| +class WebMediaStreamTrack;
|
| }
|
|
|
| namespace media {
|
| @@ -49,6 +50,18 @@ CONTENT_EXPORT bool AddAudioTrackToMediaStream(
|
| bool is_readonly,
|
| blink::WebMediaStream* web_stream);
|
|
|
| +// This method creates a WebMediaStreamSource + MediaStreamSource pair with the
|
| +// provided VideoCapturerSource. A new MediaStreamTrack is created, holding the
|
| +// previous MediaStreamSource, and is plugged into the track passed as
|
| +// |web_track|.
|
| +// |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 AddVideoCapturerSourceToVideoTrack(
|
| + scoped_ptr<media::VideoCapturerSource> source,
|
| + bool is_remote,
|
| + bool is_readonly,
|
| + blink::WebMediaStreamTrack* web_track);
|
| } // namespace content
|
|
|
| #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_
|
|
|