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

Unified Diff: content/browser/renderer_host/media/video_capture_host.cc

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/browser/renderer_host/media/video_capture_host.cc
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc
index 3720897a67ef8e19b50d57e59ead5c994ea0b1f4..51a50dcca1cd2a35bdcbfab56b8b895ffc883563 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -150,6 +150,8 @@ bool VideoCaptureHost::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_RequestRefreshFrame,
OnRequestRefreshFrame)
IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_Stop, OnStopCapture)
+ IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_SetCapturingLinkSecured,
+ OnSetCapturingLinkSecured)
IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_BufferReady,
OnRendererFinishedWithBuffer)
IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_GetDeviceSupportedFormats,
@@ -280,6 +282,17 @@ void VideoCaptureHost::OnRequestRefreshFrame(int device_id) {
}
}
+void VideoCaptureHost::OnSetCapturingLinkSecured(int device_id,
+ bool is_secure) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ VideoCaptureControllerID controller_id(device_id);
+ EntryMap::iterator it = entries_.find(controller_id);
+ if (it == entries_.end())
+ return;
+
+ media_stream_manager_->SetCapturingLinkSecured(is_secure);
+}
+
void VideoCaptureHost::OnRendererFinishedWithBuffer(
int device_id,
int buffer_id,

Powered by Google App Engine
This is Rietveld 408576698