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

Unified Diff: chrome/browser/media/media_capture_devices_dispatcher.h

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 7 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: 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..ab8796200f8cb12899e15ec64b17cbcc2ba8ca75 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.h
+++ b/chrome/browser/media/media_capture_devices_dispatcher.h
@@ -137,12 +137,21 @@ 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();
- 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);
@@ -166,6 +175,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_;

Powered by Google App Engine
This is Rietveld 408576698