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

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: 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: 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..88f43f859d75209e5234030b970e45d633176717 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.h
+++ b/chrome/browser/media/media_capture_devices_dispatcher.h
@@ -137,13 +137,27 @@ 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();
+ // Check if capturing is in process, and return if it is secure in
+ // |is_link_secure|. The capturing is secure if all video sinks are reported
+ // secure and the extension is white listed for casting.
miu 2016/04/16 00:05:29 s/extension is white listed for casting/extension
xjz 2016/04/21 23:50:45 Done.
+ bool IsCaptureInProgress(int render_process_id,
+ int render_frame_id,
+ bool* is_link_secure);
miu 2016/04/16 00:05:29 Can you eliminate the 3rd argument, and just retur
xjz 2016/04/21 23:50:45 Done. Initially I thought we need to report if cap
+
// Only for testing.
void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices);
void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices);
@@ -166,6 +180,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