Index: chrome/browser/media/media_capture_devices_dispatcher.h |
diff --git a/chrome/browser/media/media_capture_devices_dispatcher.h b/chrome/browser/media/media_capture_devices_dispatcher.h |
index 306025aafe04e72a6a5068a2994a18e25be86745..a58a263ef41f62adf329bfa7c2225d0e7e2db232 100644 |
--- a/chrome/browser/media/media_capture_devices_dispatcher.h |
+++ b/chrome/browser/media/media_capture_devices_dispatcher.h |
@@ -137,13 +137,26 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver { |
content::MediaRequestState state) override; |
void OnCreatingAudioStream(int render_process_id, |
int render_frame_id) override; |
+ void OnSetCapturingLinkSecured(int render_process_id, |
+ int render_frame_id, |
+ int page_request_id, |
+ content::MediaStreamType stream_type, |
+ bool is_secure) override; |
scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); |
DesktopStreamsRegistry* GetDesktopStreamsRegistry(); |
+ // TODO(xjz): remove this after output protection changes to use |
+ // |IsCaptureInProgress()| for checking. |
bool IsDesktopCaptureInProgress(); |
+ // Return true if there is any ongoing insecured capturing. The capturing is |
+ // deemed secure if all connected video sinks are reported secure and the |
+ // extension is trusted. |
+ bool IsInsecureCapturingInProgress(int render_process_id, |
+ int render_frame_id); |
+ |
// Only for testing. |
void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices); |
void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices); |
@@ -166,6 +179,11 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver { |
content::MediaRequestState state); |
void OnCreatingAudioStreamOnUIThread(int render_process_id, |
int render_frame_id); |
+ void UpdateCapturingLinkSecured(int render_process_id, |
+ int render_frame_id, |
+ int page_request_id, |
+ content::MediaStreamType stream_type, |
+ bool is_secure); |
// Only for testing, a list of cached audio capture devices. |
content::MediaStreamDevices test_audio_devices_; |