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

Issue 542863004: Site Isolation: RenderView-->RenderFrame for WebContentsVideoCaptureDevice and WebContentsAudioInpu… (Closed)

Created:
6 years, 3 months ago by miu
Modified:
6 years, 3 months ago
Reviewers:
DaleCurtis
CC:
ncarter (slow), chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Site Isolation: RenderView-->RenderFrame for WebContentsVideoCaptureDevice and WebContentsAudioInputStream. The tab capture audio/video devices will now track and respond to RenderFrame tree changes, rather than RenderView swaps, within a WebContents. In other words, content change events (navigation, crashes, etc.) are now followed by observing the render frame tree associated with a WebContents. AudioMirroringManager was mostly re-written around the idea that MirroringDestinations provide a query interface. The query interface was needed because AudioMirroringManager runs on the IO thread, while the question "Does render frame X associate with WebContents Y?" must be evaluated on the UI thread. Code de-duplication: Both WebContentsVideoCaptureDevice and WebContentsAudioInputStream now use the same tracking decision logic provided by WebContentsTracker. For the former, WebContentsTracker was made to detect when hops to the UI thread were not necessary, and will operate synchronously in that case. BUG=304341, 392596 Committed: https://crrev.com/451dd9aa93c91692599bd2cc88f61373857d0b16 Cr-Commit-Position: refs/heads/master@{#293888}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix comment/naming, per review suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+993 lines, -557 lines) Patch
M content/browser/media/capture/audio_mirroring_manager.h View 1 3 chunks +91 lines, -42 lines 0 comments Download
M content/browser/media/capture/audio_mirroring_manager.cc View 1 2 chunks +151 lines, -81 lines 0 comments Download
M content/browser/media/capture/audio_mirroring_manager_unittest.cc View 6 chunks +423 lines, -102 lines 0 comments Download
M content/browser/media/capture/web_contents_audio_input_stream.h View 1 chunk +5 lines, -8 lines 0 comments Download
M content/browser/media/capture/web_contents_audio_input_stream.cc View 13 chunks +59 lines, -45 lines 0 comments Download
M content/browser/media/capture/web_contents_audio_input_stream_unittest.cc View 9 chunks +40 lines, -46 lines 0 comments Download
M content/browser/media/capture/web_contents_tracker.h View 3 chunks +58 lines, -32 lines 0 comments Download
M content/browser/media/capture/web_contents_tracker.cc View 4 chunks +80 lines, -37 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.h View 1 chunk +6 lines, -10 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 16 chunks +73 lines, -141 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 3 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
miu
Dale, Here are the changes I'm making to wrap-up the site isolation changes for tab ...
6 years, 3 months ago (2014-09-05 02:59:13 UTC) #2
DaleCurtis
Looks good in general, but my eyes were crossing too much for this on a ...
6 years, 3 months ago (2014-09-05 22:41:41 UTC) #3
miu
On 2014/09/05 22:41:41, DaleCurtis wrote: > Is there another reviewer you > can add who's ...
6 years, 3 months ago (2014-09-08 22:50:54 UTC) #5
DaleCurtis
Spent some time going over this again today, lgtm - the multitude of test cases ...
6 years, 3 months ago (2014-09-09 00:39:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/542863004/20001
6 years, 3 months ago (2014-09-09 00:45:12 UTC) #8
miu
On 2014/09/09 00:39:09, DaleCurtis wrote: > Spent some time going over this again today, lgtm ...
6 years, 3 months ago (2014-09-09 00:45:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/542863004/20001
6 years, 3 months ago (2014-09-09 06:14:53 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 14b986b143e6237965b35cc86ffaa7fd3fc6197b
6 years, 3 months ago (2014-09-09 07:39:16 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:51:45 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/451dd9aa93c91692599bd2cc88f61373857d0b16
Cr-Commit-Position: refs/heads/master@{#293888}

Powered by Google App Engine
This is Rietveld 408576698