| Index: content/renderer/media/media_stream_video_capturer_source.cc
|
| diff --git a/content/renderer/media/media_stream_video_capturer_source.cc b/content/renderer/media/media_stream_video_capturer_source.cc
|
| index b080ec826df549babe74356c95e481e190ab809c..a24d7adb0b773211508453331222bec4a28f095a 100644
|
| --- a/content/renderer/media/media_stream_video_capturer_source.cc
|
| +++ b/content/renderer/media/media_stream_video_capturer_source.cc
|
| @@ -211,6 +211,7 @@ class LocalVideoCapturerSource final : public media::VideoCapturerSource {
|
| const VideoCaptureDeliverFrameCB& new_frame_callback,
|
| const RunningCallback& running_callback) override;
|
| void RequestRefreshFrame() override;
|
| + void SetCapturingLinkSecured(bool is_secure) override;
|
| void StopCapture() override;
|
|
|
| private:
|
| @@ -222,6 +223,8 @@ class LocalVideoCapturerSource final : public media::VideoCapturerSource {
|
| // |session_id_| identifies the capture device used for this capture session.
|
| const media::VideoCaptureSessionId session_id_;
|
|
|
| + const content::MediaStreamType stream_type_;
|
| +
|
| VideoCaptureImplManager* const manager_;
|
|
|
| const base::Closure release_device_cb_;
|
| @@ -250,6 +253,7 @@ class LocalVideoCapturerSource final : public media::VideoCapturerSource {
|
| LocalVideoCapturerSource::LocalVideoCapturerSource(
|
| const StreamDeviceInfo& device_info)
|
| : session_id_(device_info.session_id),
|
| + stream_type_(device_info.device.type),
|
| manager_(RenderThreadImpl::current()->video_capture_impl_manager()),
|
| release_device_cb_(manager_->UseDevice(session_id_)),
|
| is_content_capture_(IsContentVideoCaptureDevice(device_info)),
|
| @@ -318,6 +322,10 @@ void LocalVideoCapturerSource::RequestRefreshFrame() {
|
| manager_->RequestRefreshFrame(session_id_);
|
| }
|
|
|
| +void LocalVideoCapturerSource::SetCapturingLinkSecured(bool is_secure) {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| + manager_->SetCapturingLinkSecured(stream_type_, session_id_, is_secure);
|
| +}
|
|
|
| void LocalVideoCapturerSource::StopCapture() {
|
| DVLOG(3) << __FUNCTION__;
|
| @@ -412,6 +420,10 @@ void MediaStreamVideoCapturerSource::RequestRefreshFrame() {
|
| source_->RequestRefreshFrame();
|
| }
|
|
|
| +void MediaStreamVideoCapturerSource::SetCapturingLinkSecured(bool is_secure) {
|
| + source_->SetCapturingLinkSecured(is_secure);
|
| +}
|
| +
|
| void MediaStreamVideoCapturerSource::GetCurrentSupportedFormats(
|
| int max_requested_width,
|
| int max_requested_height,
|
|
|