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

Issue 2430313007: VideoCapture: remove last remnants of IPC (Closed)

Created:
4 years, 2 months ago by mcasas
Modified:
4 years, 2 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VideoCapture: remove last remnants of IPC In this CL: - On Browser: VCHost is not a BrowserMessageFilter nor a BrowserAssociatedInterface, and instead works like a normal service implementation, Create()d on request and hanging from the render process host. -On renderer: - VideoCaptureMessageFilter, which was specific for IPC, is removed altogether. - VCImpl (the "client"), does not need the IPC, and instead gets an InterfacePtr to the remote VideoCaptureHost, and uses it. All that allows for a few simplifications around like, e.g. VCImpl doesn't need to keep track of |clients_pending_on_filter_| nor of IO thread explicitly (using a ThreadChecker instead), and also I cleaned up a bit more the unittests. BUG=651897 Committed: https://crrev.com/049d6417fa6d74291ef6048dd94dfd8f8b571215 Cr-Commit-Position: refs/heads/master@{#426903}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : rockot@ comment on using ChildThread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -464 lines) Patch
M content/browser/renderer_host/media/video_capture_host.h View 3 chunks +7 lines, -17 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 4 chunks +22 lines, -25 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 5 chunks +3 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/common/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/content_message_generator.h View 1 chunk +0 lines, -1 line 0 comments Download
D content/common/media/video_capture_messages.h View 1 chunk +0 lines, -14 lines 0 comments Download
M content/renderer/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/video_capture_impl.h View 3 chunks +21 lines, -50 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 15 chunks +52 lines, -68 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager.h View 3 chunks +1 line, -10 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager.cc View 5 chunks +5 lines, -9 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager_unittest.cc View 4 chunks +7 lines, -19 lines 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 4 chunks +2 lines, -9 lines 0 comments Download
D content/renderer/media/video_capture_message_filter.h View 1 chunk +0 lines, -68 lines 0 comments Download
D content/renderer/media/video_capture_message_filter.cc View 1 chunk +0 lines, -77 lines 0 comments Download
D content/renderer/media/video_capture_message_filter_unittest.cc View 1 chunk +0 lines, -82 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
mcasas
rockot@ PTAL, particularly inside video_capture_{host,impl,impl_manager} where the action happens avi@ plz RS changes to BUILD.gn ...
4 years, 2 months ago (2016-10-21 16:13:22 UTC) #5
Avi (use Gerrit)
On 2016/10/21 16:13:22, mcasas wrote: > rockot@ PTAL, particularly inside > video_capture_{host,impl,impl_manager} where the > ...
4 years, 2 months ago (2016-10-21 17:24:25 UTC) #6
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2430313007/diff/40001/content/renderer/media/video_capture_impl.cc File content/renderer/media/video_capture_impl.cc (right): https://codereview.chromium.org/2430313007/diff/40001/content/renderer/media/video_capture_impl.cc#newcode75 content/renderer/media/video_capture_impl.cc:75: if (RenderThreadImpl::current()) { // This is null in ...
4 years, 2 months ago (2016-10-21 17:29:28 UTC) #7
Tom Sepez
RS LGTM on deleting messages.
4 years, 2 months ago (2016-10-21 18:13:18 UTC) #8
mcasas
https://codereview.chromium.org/2430313007/diff/40001/content/renderer/media/video_capture_impl.cc File content/renderer/media/video_capture_impl.cc (right): https://codereview.chromium.org/2430313007/diff/40001/content/renderer/media/video_capture_impl.cc#newcode75 content/renderer/media/video_capture_impl.cc:75: if (RenderThreadImpl::current()) { // This is null in unit ...
4 years, 2 months ago (2016-10-21 19:02:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2430313007/60001
4 years, 2 months ago (2016-10-21 19:04:25 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 2 months ago (2016-10-21 21:54:11 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 22:00:13 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/049d6417fa6d74291ef6048dd94dfd8f8b571215
Cr-Commit-Position: refs/heads/master@{#426903}

Powered by Google App Engine
This is Rietveld 408576698