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

Unified Diff: chrome/browser/media/desktop_capture_access_handler.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/desktop_capture_access_handler.h
diff --git a/chrome/browser/media/desktop_capture_access_handler.h b/chrome/browser/media/desktop_capture_access_handler.h
index c0ab0ec3ac6dbcea3852a9a4d95fca7596964865..39906d171c4bf046f412b841eba494f3dc6ed076 100644
--- a/chrome/browser/media/desktop_capture_access_handler.h
+++ b/chrome/browser/media/desktop_capture_access_handler.h
@@ -35,8 +35,18 @@ class DesktopCaptureAccessHandler : public MediaAccessHandler {
content::MediaStreamType stream_type,
content::MediaRequestState state) override;
+ // TODO(xjz): To be removed.
bool IsCaptureInProgress();
+ bool IsCaptureInProgress(int render_process_id,
+ int render_frame_id,
+ bool* is_link_secure);
+ void UpdateCapturingLinkSecured(int render_process_id,
+ int render_frame_id,
+ int page_request_id,
+ content::MediaStreamType stream_type,
+ bool is_secure);
+
private:
// Tracks MEDIA_DESKTOP_VIDEO_CAPTURE sessions which reach the
// MEDIA_REQUEST_STATE_DONE state. Sessions are remove when
@@ -45,6 +55,7 @@ class DesktopCaptureAccessHandler : public MediaAccessHandler {
int render_process_id;
int render_frame_id;
int page_request_id;
+ bool is_capturing_link_secure;
};
typedef std::list<DesktopCaptureSession> DesktopCaptureSessions;
@@ -55,6 +66,9 @@ class DesktopCaptureAccessHandler : public MediaAccessHandler {
const extensions::Extension* extension);
DesktopCaptureSessions desktop_capture_sessions_;
+
+ // If the extension is authorized for casting.
+ bool extension_whitelisted_;
};
#endif // CHROME_BROWSER_MEDIA_DESKTOP_CAPTURE_ACCESS_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698