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

Unified Diff: content/public/renderer/media_stream_video_sink.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 oshima and nasko's comments, and rebased. 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
« no previous file with comments | « content/public/browser/media_observer.h ('k') | content/public/renderer/media_stream_video_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/media_stream_video_sink.h
diff --git a/content/public/renderer/media_stream_video_sink.h b/content/public/renderer/media_stream_video_sink.h
index fd5334c4e6d1fb74929a48d3c025e7d6a9cf0e71..6710de7599feba51a888e861f0e2949dab99b4de 100644
--- a/content/public/renderer/media_stream_video_sink.h
+++ b/content/public/renderer/media_stream_video_sink.h
@@ -41,8 +41,13 @@ class CONTENT_EXPORT MediaStreamVideoSink : public MediaStreamSink {
// Warning: Calling DisconnectFromTrack does not immediately stop frame
// delivery through the |callback|, since frames are being delivered on a
// different thread.
+ //
+ // |is_sink_secure| indicates if this MediaStreamVideoSink is secure (i.e.
+ // meets output protection requirement). Generally, this should be false
+ // unless you know what you are doing.
void ConnectToTrack(const blink::WebMediaStreamTrack& track,
- const VideoCaptureDeliverFrameCB& callback);
+ const VideoCaptureDeliverFrameCB& callback,
+ bool is_sink_secure);
void DisconnectFromTrack();
// Returns the currently-connected track, or a null instance otherwise.
« no previous file with comments | « content/public/browser/media_observer.h ('k') | content/public/renderer/media_stream_video_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698