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

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed)

Created:
4 years, 8 months ago by xjz
Modified:
4 years, 7 months ago
Reviewers:
xhwang, oshima, miu, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, imcheng+watch_chromium.org, posciak+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report 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. BUG=601859 Committed: https://crrev.com/f6f63a8db446f2114984ca8e48c28097155bb0e3 Cr-Commit-Position: refs/heads/master@{#393005}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 27

Patch Set 3 : Addressed comments. Rebased. #

Total comments: 48

Patch Set 4 : Addressed comments. #

Total comments: 2

Patch Set 5 : Addressed comments and rebased. #

Total comments: 6

Patch Set 6 : Addressed comments. #

Total comments: 29

Patch Set 7 : Addressed oshima's comments. #

Total comments: 8

Patch Set 8 : Addressed oshima and nasko's comments, and rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -150 lines) Patch
M chrome/browser/chromeos/display/output_protection_delegate.cc View 1 2 3 4 5 6 2 chunks +6 lines, -7 lines 0 comments Download
A chrome/browser/media/capture_access_handler_base.h View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/media/capture_access_handler_base.cc View 1 2 3 4 5 6 1 chunk +184 lines, -0 lines 0 comments Download
M chrome/browser/media/desktop_capture_access_handler.h View 1 2 2 chunks +2 lines, -21 lines 0 comments Download
M chrome/browser/media/desktop_capture_access_handler.cc View 1 2 3 4 3 chunks +3 lines, -61 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.h View 1 2 3 4 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 4 3 chunks +51 lines, -5 lines 0 comments Download
M chrome/browser/media/tab_capture_access_handler.h View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/media/tab_capture_access_handler.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/media/cast_rtp_stream.cc View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 6 7 2 chunks +32 lines, -0 lines 0 comments Download
M content/common/media/media_stream_messages.h View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M content/public/browser/media_observer.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/renderer/media_stream_video_sink.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M content/public/renderer/media_stream_video_sink.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/media/image_capture_frame_grabber.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.h View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.cc View 1 2 3 4 5 4 chunks +11 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/media_stream_video_renderer_sink.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M content/renderer/media/media_stream_video_source.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 1 2 3 4 4 chunks +10 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_video_track.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 2 3 2 chunks +12 lines, -3 lines 0 comments Download
M content/renderer/media/mock_media_stream_video_sink.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/pepper_to_video_track_adapter_unittest.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
A content/renderer/media/secure_display_link_tracker.h View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_impl_manager.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/video_track_recorder.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/video_track_to_pepper_adapter.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_video_webrtc_sink.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 47 (17 generated)
xjz
PTAL. Here is a brief description of this CL: https://docs.google.com/a/google.com/document/d/1_nLvP4hL2QaRoUiBH3rSLy4jppjUo7RbhJX6V1Shlsk/edit?usp=sharing Here is the flow chart ...
4 years, 8 months ago (2016-04-11 19:30:06 UTC) #3
xhwang
The design doc lg but I am not really familiar with this area. I only ...
4 years, 8 months ago (2016-04-12 22:18:50 UTC) #4
xjz
https://chromiumcodereview.appspot.com/1873293002/diff/20001/chrome/browser/media/media_capture_devices_dispatcher.h File chrome/browser/media/media_capture_devices_dispatcher.h (right): https://chromiumcodereview.appspot.com/1873293002/diff/20001/chrome/browser/media/media_capture_devices_dispatcher.h#newcode155 chrome/browser/media/media_capture_devices_dispatcher.h:155: // |is_link_secure|. On 2016/04/12 22:18:50, xhwang wrote: > We ...
4 years, 8 months ago (2016-04-12 22:29:08 UTC) #5
xjz
Addressed xhwang's comments and some fixes.
4 years, 8 months ago (2016-04-13 23:04:55 UTC) #7
miu
https://codereview.chromium.org/1873293002/diff/60001/chrome/browser/media/desktop_capture_access_handler.cc File chrome/browser/media/desktop_capture_access_handler.cc (right): https://codereview.chromium.org/1873293002/diff/60001/chrome/browser/media/desktop_capture_access_handler.cc#newcode448 chrome/browser/media/desktop_capture_access_handler.cc:448: extension_whitelisted_ = MediaCaptureDevicesDispatcher::IsOriginForCasting( This value will be different for ...
4 years, 8 months ago (2016-04-16 00:05:30 UTC) #8
xjz
Thanks Yuri! Addressed your comments. PTAL. https://codereview.chromium.org/1873293002/diff/60001/chrome/browser/media/desktop_capture_access_handler.cc File chrome/browser/media/desktop_capture_access_handler.cc (right): https://codereview.chromium.org/1873293002/diff/60001/chrome/browser/media/desktop_capture_access_handler.cc#newcode448 chrome/browser/media/desktop_capture_access_handler.cc:448: extension_whitelisted_ = MediaCaptureDevicesDispatcher::IsOriginForCasting( ...
4 years, 8 months ago (2016-04-21 23:50:45 UTC) #14
miu
Looking good! Comments on PS3: https://codereview.chromium.org/1873293002/diff/60001/chrome/browser/media/desktop_capture_access_handler.h File chrome/browser/media/desktop_capture_access_handler.h (right): https://codereview.chromium.org/1873293002/diff/60001/chrome/browser/media/desktop_capture_access_handler.h#newcode38 chrome/browser/media/desktop_capture_access_handler.h:38: // TODO(xjz): To be ...
4 years, 8 months ago (2016-04-26 01:25:14 UTC) #15
xjz
Yuri: Thanks! Addressed your comments. PTAL. https://codereview.chromium.org/1873293002/diff/180001/chrome/browser/media/capture_access_handler_base.cc File chrome/browser/media/capture_access_handler_base.cc (right): https://codereview.chromium.org/1873293002/diff/180001/chrome/browser/media/capture_access_handler_base.cc#newcode21 chrome/browser/media/capture_access_handler_base.cc:21: bool is_link_secure) { ...
4 years, 7 months ago (2016-04-29 00:11:43 UTC) #17
miu
https://codereview.chromium.org/1873293002/diff/180001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/1873293002/diff/180001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode69 chrome/browser/media/media_capture_devices_dispatcher.cc:69: inline DesktopCaptureAccessHandler* ToDesktopCaptureAccessHandler( On 2016/04/29 00:11:42, xjz wrote: > ...
4 years, 7 months ago (2016-05-02 21:02:45 UTC) #18
xjz
Addressed comments. PTAL. https://codereview.chromium.org/1873293002/diff/180001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/1873293002/diff/180001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode69 chrome/browser/media/media_capture_devices_dispatcher.cc:69: inline DesktopCaptureAccessHandler* ToDesktopCaptureAccessHandler( On 2016/05/02 21:02:45, ...
4 years, 7 months ago (2016-05-04 18:23:49 UTC) #21
miu
Excellent work! This is a very involved change! :) Almost there, just a few small ...
4 years, 7 months ago (2016-05-06 18:56:22 UTC) #22
xjz
Thanks Yuri! Addressed your comments. PTAL. https://codereview.chromium.org/1873293002/diff/280001/chrome/browser/media/capture_access_handler_base.cc File chrome/browser/media/capture_access_handler_base.cc (right): https://codereview.chromium.org/1873293002/diff/280001/chrome/browser/media/capture_access_handler_base.cc#newcode72 chrome/browser/media/capture_access_handler_base.cc:72: VLOG(2) << "Add ...
4 years, 7 months ago (2016-05-06 22:08:46 UTC) #24
miu
lgtm
4 years, 7 months ago (2016-05-06 23:15:37 UTC) #25
xjz
Thanks Yuri! oshima@: PTAL changes on chrome/browser/chromeos/display/output_protection_delegate.cc nasko@: PTAL changes on content/common/media/media_stream_messages.h
4 years, 7 months ago (2016-05-06 23:28:46 UTC) #27
xjz
nasko@: Also needs your approval on content/browser/* and content/public/*.
4 years, 7 months ago (2016-05-06 23:47:23 UTC) #28
oshima
https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode126 chrome/browser/chromeos/display/output_protection_delegate.cc:126: content::RenderFrameHost::FromID(render_process_id_, render_frame_id_); do you still need this? https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/media/capture_access_handler_base.cc File ...
4 years, 7 months ago (2016-05-07 14:41:50 UTC) #29
xhwang
chrome/browser/chromeos/display/output_protection_delegate.cc and the new API LGTM. You need other owners to review detailed changes. Thanks!!! ...
4 years, 7 months ago (2016-05-09 18:29:48 UTC) #30
miu
https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/media/capture_access_handler_base.h File chrome/browser/media/capture_access_handler_base.h (right): https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/media/capture_access_handler_base.h#newcode64 chrome/browser/media/capture_access_handler_base.h:64: }; On 2016/05/07 14:41:49, oshima wrote: > move the ...
4 years, 7 months ago (2016-05-09 20:30:51 UTC) #31
nasko
https://codereview.chromium.org/1873293002/diff/300001/content/common/media/media_stream_messages.h File content/common/media/media_stream_messages.h (right): https://codereview.chromium.org/1873293002/diff/300001/content/common/media/media_stream_messages.h#newcode161 content/common/media/media_stream_messages.h:161: bool /* is_secure */) This seems incorrect from threat ...
4 years, 7 months ago (2016-05-09 21:33:30 UTC) #32
oshima
https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/media/capture_access_handler_base.h File chrome/browser/media/capture_access_handler_base.h (right): https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/media/capture_access_handler_base.h#newcode64 chrome/browser/media/capture_access_handler_base.h:64: }; On 2016/05/09 20:30:50, miu wrote: > On 2016/05/07 ...
4 years, 7 months ago (2016-05-09 22:24:48 UTC) #33
miu
https://codereview.chromium.org/1873293002/diff/300001/content/common/media/media_stream_messages.h File content/common/media/media_stream_messages.h (right): https://codereview.chromium.org/1873293002/diff/300001/content/common/media/media_stream_messages.h#newcode161 content/common/media/media_stream_messages.h:161: bool /* is_secure */) On 2016/05/09 21:33:29, nasko (slow) ...
4 years, 7 months ago (2016-05-09 23:09:31 UTC) #34
miu
https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/media/capture_access_handler_base.h File chrome/browser/media/capture_access_handler_base.h (right): https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/media/capture_access_handler_base.h#newcode64 chrome/browser/media/capture_access_handler_base.h:64: }; On 2016/05/09 22:24:48, oshima wrote: > On 2016/05/09 ...
4 years, 7 months ago (2016-05-09 23:10:52 UTC) #35
xjz
PTAL. Addressed oshima's comments in PS# 7. https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/chromeos/display/output_protection_delegate.cc File chrome/browser/chromeos/display/output_protection_delegate.cc (right): https://codereview.chromium.org/1873293002/diff/300001/chrome/browser/chromeos/display/output_protection_delegate.cc#newcode126 chrome/browser/chromeos/display/output_protection_delegate.cc:126: content::RenderFrameHost::FromID(render_process_id_, render_frame_id_); ...
4 years, 7 months ago (2016-05-10 00:28:25 UTC) #36
oshima
lgtm with optional nits: https://codereview.chromium.org/1873293002/diff/320001/content/renderer/media/secure_display_link_tracker.h File content/renderer/media/secure_display_link_tracker.h (right): https://codereview.chromium.org/1873293002/diff/320001/content/renderer/media/secure_display_link_tracker.h#newcode31 content/renderer/media/secure_display_link_tracker.h:31: void SecureDisplayLinkTracker<T>::Add(T* link, bool is_link_secure) ...
4 years, 7 months ago (2016-05-10 02:13:45 UTC) #37
nasko
On 2016/05/09 23:09:31, miu wrote: > https://codereview.chromium.org/1873293002/diff/300001/content/common/media/media_stream_messages.h > File content/common/media/media_stream_messages.h (right): > > https://codereview.chromium.org/1873293002/diff/300001/content/common/media/media_stream_messages.h#newcode161 > ...
4 years, 7 months ago (2016-05-11 16:36:33 UTC) #38
nasko
IPC code LGTM, with the remark that I still think it is better to manage ...
4 years, 7 months ago (2016-05-11 16:42:56 UTC) #39
xjz
Thanks everyone for reviewing this! Addressed oshima and nasko's comments in PS# 8. https://codereview.chromium.org/1873293002/diff/320001/content/browser/renderer_host/media/media_stream_dispatcher_host.h File ...
4 years, 7 months ago (2016-05-11 18:07:24 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1873293002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1873293002/340001
4 years, 7 months ago (2016-05-11 18:08:21 UTC) #43
commit-bot: I haz the power
Committed patchset #8 (id:340001)
4 years, 7 months ago (2016-05-11 18:35:44 UTC) #45
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 18:38:48 UTC) #47
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f6f63a8db446f2114984ca8e48c28097155bb0e3
Cr-Commit-Position: refs/heads/master@{#393005}

Powered by Google App Engine
This is Rietveld 408576698