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

Issue 2390103002: Reland: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 1 (Closed)

Created:
4 years, 2 months ago by mcasas
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 1 This CL migrates the renderer (client) side of the communication VCImp --> VCHost that was forgotten in the reverted CL (all due to my misunderstanding, apologies!). Unittests are also updated, constituting the bulk of the CL. Original CL description ------------------------------------------------ VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 1 This CL migrates the easy-to-migrate video_capture_messages from IPC to mojom. "Easy" refers to those messages whose data types are readily available. BUG=651897 TEST=./out/gn/content_unittests --gtest_filter=*VideoCapture*, content_browsertests and video capture working as before. Committed: https://crrev.com/796b2e6cd3c150f29460c082fcc60ee2186ea9ab Cr-Commit-Position: refs/heads/master@{#423388}

Patch Set 1 : https://codereview.chromium.org/2384843002/ #

Patch Set 2 : Renamed StopCapture and PauseCapture to Stop and Pause #

Total comments: 6

Patch Set 3 : Migrated renderer side as well, unittests #

Total comments: 6

Patch Set 4 : rockot@ comments (plenty of renaming) #

Total comments: 1

Patch Set 5 : Sorted out tests after linker collision. Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -239 lines) Patch
M content/browser/renderer_host/media/video_capture_host.h View 1 2 3 5 chunks +18 lines, -34 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 17 chunks +92 lines, -101 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 2 3 4 8 chunks +34 lines, -12 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/media/video_capture_messages.h View 1 2 3 chunks +1 line, -14 lines 0 comments Download
A content/common/video_capture.mojom View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/video_capture_impl.h View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 2 3 5 chunks +37 lines, -21 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_impl_manager_unittest.cc View 1 2 3 6 chunks +26 lines, -13 lines 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 1 2 3 4 13 chunks +42 lines, -33 lines 0 comments Download
M content/renderer/media/video_capture_message_filter.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_message_filter.cc View 1 2 3 5 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
mcasas
rockot@ PTAL at the changes in PS1 (Took a look at changing also the renderer ...
4 years, 2 months ago (2016-10-04 22:11:19 UTC) #3
Ken Rockot(use gerrit already)
You're still not hooking up the client code to call these messages. Is that intentional? ...
4 years, 2 months ago (2016-10-04 23:35:36 UTC) #4
miu
https://codereview.chromium.org/2390103002/diff/40001/content/common/video_capture.mojom File content/common/video_capture.mojom (right): https://codereview.chromium.org/2390103002/diff/40001/content/common/video_capture.mojom#newcode12 content/common/video_capture.mojom:12: Stop(int32 device_id); In the Mojo world, we're supposed to ...
4 years, 2 months ago (2016-10-05 07:49:29 UTC) #6
Ken Rockot(use gerrit already)
On Oct 5, 2016 12:50 AM, <miu@chromium.org> wrote: > > > https://codereview.chromium.org/2390103002/diff/40001/content/common/video_capture.mojom > File content/common/video_capture.mojom ...
4 years, 2 months ago (2016-10-05 08:14:13 UTC) #7
mcasas
ptal https://codereview.chromium.org/2390103002/diff/40001/content/common/media/video_capture_messages.h File content/common/media/video_capture_messages.h (right): https://codereview.chromium.org/2390103002/diff/40001/content/common/media/video_capture_messages.h#newcode99 content/common/media/video_capture_messages.h:99: IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, On 2016/10/04 23:35:36, Ken Rockot wrote: > ...
4 years, 2 months ago (2016-10-05 18:33:00 UTC) #10
miu
On 2016/10/05 18:33:00, mcasas wrote: > I do agree, and in fact starting migrating the ...
4 years, 2 months ago (2016-10-05 18:52:46 UTC) #11
Ken Rockot(use gerrit already)
It's not much more work, and we're considering message format conversion to be a worthwhile ...
4 years, 2 months ago (2016-10-05 19:55:23 UTC) #12
miu
k. Sounds fine. I'll remove myself as reviewer, as my original comment was just a ...
4 years, 2 months ago (2016-10-05 20:07:45 UTC) #13
Ken Rockot(use gerrit already)
Just some nits. LGTM https://codereview.chromium.org/2390103002/diff/80001/content/common/video_capture.mojom File content/common/video_capture.mojom (right): https://codereview.chromium.org/2390103002/diff/80001/content/common/video_capture.mojom#newcode7 content/common/video_capture.mojom:7: interface VideoCaptureService nit: Chromium C++ ...
4 years, 2 months ago (2016-10-05 20:59:44 UTC) #15
mcasas
tsepez@: PTAL at removed IPC messages and corresponding mojom entries . avi@ RS BUILD.gn addition ...
4 years, 2 months ago (2016-10-05 22:23:50 UTC) #18
Tom Sepez
lgtm
4 years, 2 months ago (2016-10-05 22:25:43 UTC) #19
Avi (use Gerrit)
LGTM
4 years, 2 months ago (2016-10-05 22:27:51 UTC) #20
mcasas
https://codereview.chromium.org/2390103002/diff/120001/content/browser/renderer_host/media/video_capture_host_unittest.cc File content/browser/renderer_host/media/video_capture_host_unittest.cc (right): https://codereview.chromium.org/2390103002/diff/120001/content/browser/renderer_host/media/video_capture_host_unittest.cc#newcode130 content/browser/renderer_host/media/video_capture_host_unittest.cc:130: class MockVideoCaptureHost : public VideoCaptureHost { After the renaming ...
4 years, 2 months ago (2016-10-05 23:42:02 UTC) #22
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/2390103002/160001
4 years, 2 months ago (2016-10-06 00:35:06 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years, 2 months ago (2016-10-06 01:48:33 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 01:53:13 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/796b2e6cd3c150f29460c082fcc60ee2186ea9ab
Cr-Commit-Position: refs/heads/master@{#423388}

Powered by Google App Engine
This is Rietveld 408576698