|
[Cross-Site Isolation] Migrate entire MediaStream verticals to be per-RenderFrame.
Much of this change is search-and-replace RenderView-->RenderFrame and
render_view_id-->render_frame_id. However, the following significant
changes have also been made, mainly to simplify/clarify/clean-up the
same LOC that would have had to be changed anyway:
1. Desktop and Tab capture APIs now "register" a WebContents instance,
rather than a RenderViewHost. This is a more-appropriate choice than
registering a RenderFrameHost, and simplifies a lot of code.
2. Removed unnecessary "prepending" and "stripping" of the first part of
the tab capture device ID in special circumstances. It is no longer
necessary.
3. TabCaptureRegistry uses WebContentsObserver to detect all fullscreen
changes, rather than the deprecated NotificationObserver scheme.
4. Fixes for buggy MediaStreamImpl tear-down: MediaStreamDispatcher is
now explicitly owned by MediaStreamImpl, to ensure it is destroyed
only after it is no longer needed. Also, weak pointers to
MediaStreamImpl are invalidated before MSI data members are destroyed
(it was observed during testing that outstanding callbacks were
firing *after* the data members were destroyed).
Testing:
1. All relevant content_unittests and browser_tests run.
2. Manually engaged tab capture and desktop capture using Google Cast
extension and "Desktop Capture Example"
( https://developer.chrome.com/extensions/samples) to test screen
picker UI.
3. Ran WebRTC demo: http://apprtc.appspot.com
4. Confirmed Flash webcam and microphone input.
5. Checked tab capture/recording/audio indicators.
6. Confirmed HTML5 and Flash fullscreen-within-tab functionality during
tab capture.
BUG= 304341, 323223, 320200, 163100, 338445
TEST=See "Testing" above.
TBR=kenrb@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283702
Total comments: 47
Total comments: 7
Total comments: 7
Total comments: 3
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1071 lines, -1051 lines) |
Patch |
 |
M |
chrome/browser/extensions/api/desktop_capture/desktop_capture_api.h
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
|
View
|
1
2
3
|
6 chunks |
+22 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/tab_capture/tab_capture_api.cc
|
View
|
1
2
3
|
6 chunks |
+15 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/tab_capture/tab_capture_registry.h
|
View
|
1
2
3
4
5
|
4 chunks |
+36 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+206 lines, -200 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/desktop_streams_registry.h
|
View
|
1
2
3
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/desktop_streams_registry.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/media_capture_devices_dispatcher.h
|
View
|
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/media_capture_devices_dispatcher.cc
|
View
|
1
2
3
4
5
|
10 chunks |
+35 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/media_delegate_chromeos.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/media_delegate_chromeos.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/tab_capture/api_tests.js
|
View
|
1
2
3
|
1 chunk |
+44 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/tab_capture/manifest.json
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_frame_host_delegate.h
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_frame_host_delegate.cc
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_audio_input_stream.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_audio_input_stream.cc
|
View
|
1
2
3
|
10 chunks |
+25 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_capture_util.h
|
View
|
|
1 chunk |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_capture_util.cc
|
View
|
|
2 chunks |
+7 lines, -23 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_tracker.h
|
View
|
|
3 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_tracker.cc
|
View
|
|
4 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_video_capture_device.h
|
View
|
|
2 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_video_capture_device.cc
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+20 lines, -21 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
View
|
|
1 chunk |
+5 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/DEPS
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/device_request_message_filter.h
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/device_request_message_filter.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/device_request_message_filter_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.h
|
View
|
|
3 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.cc
|
View
|
|
10 chunks |
+30 lines, -31 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
View
|
|
10 chunks |
+24 lines, -23 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.h
|
View
|
|
7 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.cc
|
View
|
|
28 chunks |
+44 lines, -61 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager_unittest.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_requester.h
|
View
|
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_ui_proxy.h
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_ui_proxy.cc
|
View
|
|
6 chunks |
+19 lines, -21 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc
|
View
|
|
4 chunks |
+4 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/mock_media_observer.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host_unittest.cc
|
View
|
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_view_host_delegate.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/speech/speech_recognition_dispatcher_host.h
|
View
|
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/speech/speech_recognition_dispatcher_host.cc
|
View
|
4
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/speech/speech_recognition_manager_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/common/media/media_stream_messages.h
|
View
|
|
5 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/common/media/media_stream_options.cc
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/media_observer.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/speech_recognition_session_context.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/speech_recognition_session_context.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/common/media_stream_request.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/public/common/media_stream_request.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/renderer/render_frame_observer.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_audio_source.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_audio_source.cc
|
View
|
1
|
1 chunk |
+16 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_dispatcher.h
|
View
|
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_dispatcher.cc
|
View
|
|
20 chunks |
+27 lines, -25 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_dispatcher_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_impl.h
|
View
|
|
10 chunks |
+22 lines, -29 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_impl.cc
|
View
|
|
21 chunks |
+63 lines, -90 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_impl_unittest.cc
|
View
|
|
7 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_renderer.cc
|
View
|
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_local_audio_renderer.cc
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_audio_input_host.cc
|
View
|
|
3 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_media_device_manager.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_media_device_manager.cc
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+35 lines, -23 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_platform_audio_input.h
|
View
|
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_platform_audio_input.cc
|
View
|
|
8 chunks |
+36 lines, -21 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_platform_video_capture.h
|
View
|
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_platform_video_capture.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+25 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_video_capture_host.cc
|
View
|
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_frame_impl.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+12 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+18 lines, -23 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/shell/renderer/test_runner/web_test_proxy.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
Total messages: 32 (0 generated)
|