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

Issue 2395163002: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 2 (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, mlamouri+watch-content_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

VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 2 This CL migrates video capture IPC messages Start and Resume from IPC to mojom. It needs 2 EnumTraits (ResolutionChangePolicy and PowerLineFrequency) in //services/video_capture, and a StructTraits for VideoCaptureParams in //content. The conversion of the IPC-related classes VideoCaptureHost and VideoCaptureImpl is quite straightforward. The bulk of the CL is unit tests adaptation (and cleanup!) and type renaming. BUG=651897 TEST=content_unittests, content_browsertests, video_capture_unittests Committed: https://crrev.com/c3b336b680612cc73a94138df19bf3ad7096b856 Cr-Commit-Position: refs/heads/master@{#423859}

Patch Set 1 : #

Patch Set 2 : //content/common has to depend on //services/video_capture public types #

Patch Set 3 : Added //content/common:mojo_bindings dep on //services/video_capture/public/interfaces #

Total comments: 4

Patch Set 4 : rockot@s comments on renaming and return types #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -258 lines) Patch
M content/browser/renderer_host/media/video_capture_host.h View 3 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 5 chunks +42 lines, -54 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M content/common/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/OWNERS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/media/video_capture_messages.h View 2 chunks +0 lines, -24 lines 0 comments Download
M content/common/typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/video_capture.mojom View 1 chunk +15 lines, -0 lines 0 comments Download
A content/common/video_capture.typemap View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A content/common/video_capture_struct_traits.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A content/common/video_capture_struct_traits.cc View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager_unittest.cc View 7 chunks +21 lines, -33 lines 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 15 chunks +38 lines, -53 lines 0 comments Download
M services/video_capture/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M services/video_capture/fake_device_descriptor_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/video_capture/fake_device_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/video_capture/mock_device_video_capture_service_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
D services/video_capture/mojo_media_conversions.h View 1 chunk +0 lines, -25 lines 0 comments Download
D services/video_capture/mojo_media_conversions.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M services/video_capture/public/interfaces/typemaps.gni View 1 chunk +4 lines, -1 line 0 comments Download
A services/video_capture/public/interfaces/video_capture_device_proxy.typemap View 1 chunk +17 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_device_proxy_traits.h View 1 chunk +36 lines, -0 lines 0 comments Download
A services/video_capture/public/interfaces/video_capture_device_proxy_traits.cc View 1 chunk +82 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.h View 2 chunks +3 lines, -2 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.cc View 2 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
mcasas
chfremer@ ptal at changes in //services/video_capture rockot@ ptal at //content changes: more of the same.
4 years, 2 months ago (2016-10-06 15:13:47 UTC) #5
chfremer
lgtm
4 years, 2 months ago (2016-10-06 17:12:17 UTC) #6
mcasas
rockot@ is working in // to land a small patch fixing the failing unittests, in ...
4 years, 2 months ago (2016-10-06 20:53:19 UTC) #8
Tom Sepez
On 2016/10/06 20:53:19, mcasas wrote: > rockot@ is working in // to land a small ...
4 years, 2 months ago (2016-10-06 21:05:18 UTC) #9
Tom Sepez
Doesn't change existing behaviour WRT IDs as keys, so LGTM.
4 years, 2 months ago (2016-10-06 22:23:18 UTC) #10
Ken Rockot(use gerrit already)
LGTM. FYI the fix for BrowserAssociatedInterface has just landed in https://crrev.com/0e666505 https://codereview.chromium.org/2395163002/diff/80001/content/common/video_capture_traits.h File content/common/video_capture_traits.h (right): ...
4 years, 2 months ago (2016-10-06 23:09:05 UTC) #11
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2395163002/diff/80001/content/common/video_capture_traits.h File content/common/video_capture_traits.h (right): https://codereview.chromium.org/2395163002/diff/80001/content/common/video_capture_traits.h#newcode25 content/common/video_capture_traits.h:25: return static_cast<video_capture::mojom::ResolutionChangePolicy>( Oops, just noticed this - you shouldn't ...
4 years, 2 months ago (2016-10-06 23:12:30 UTC) #12
mcasas
avi@ plz RS additions to content/common (minus security stuff, already seen by tsepez@) thanks! https://codereview.chromium.org/2395163002/diff/80001/content/common/video_capture_traits.h ...
4 years, 2 months ago (2016-10-06 23:46:36 UTC) #14
Avi (use Gerrit)
lgtm stampity stamp
4 years, 2 months ago (2016-10-07 14:38:33 UTC) #19
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/2395163002/100001
4 years, 2 months ago (2016-10-07 14:50:02 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 2 months ago (2016-10-07 14:56:05 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 14:58:03 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c3b336b680612cc73a94138df19bf3ad7096b856
Cr-Commit-Position: refs/heads/master@{#423859}

Powered by Google App Engine
This is Rietveld 408576698