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

Issue 2244763002: Video Capture Mojo (1.4a.a): Add service configurator interface (Closed)

Created:
4 years, 4 months ago by chfremer
Modified:
4 years, 4 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@MakeService
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Video Capture Mojo: Add service configurator interface This CL is part of the Mojo Video Capture work. For the bigger picture, see [1]. This is a follow up to a CL [2] currently under review. * Add top-level interface VideoCaptureService which exposes access to two different instances of VideoCaptureDevicFactory, one for actual devices and one for fake devices. * Expose a new interface FakeVideoCaptureDeviceFactoryConfigurator for configuring which fake devices are available. * Let method CreateDevice() return a result code to be able to report non-success outcome back to clients. * Added service test: + FakeCaptureDeviceGetsEnumerated BUG=584797 TEST=Build of video_capture_unittests succeeds. All video_capture_unittests pass. [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing [2] https://codereview.chromium.org/2224103002/ Committed: https://crrev.com/262b6e71844a2fe0948c36c78ef1c91f9f02042d Cr-Commit-Position: refs/heads/master@{#413205}

Patch Set 1 #

Patch Set 2 : Merge-in changes from upstream #

Total comments: 23

Patch Set 3 : mcasas' comments #

Total comments: 6

Patch Set 4 : Split out rename to separate CL #

Total comments: 23

Patch Set 5 : yzshen's comments #

Patch Set 6 : Removed interface and functionality for configuring multiple devices in fake factory. #

Total comments: 10

Patch Set 7 : mcasas' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -78 lines) Patch
M services/video_capture/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M services/video_capture/public/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device.mojom View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_factory.mojom View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
A services/video_capture/public/interfaces/video_capture_service.mojom View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M services/video_capture/service_unittest.cc View 1 2 3 4 5 6 2 chunks +32 lines, -12 lines 0 comments Download
D services/video_capture/video_capture_device_client_impl.h View 1 chunk +0 lines, -22 lines 0 comments Download
D services/video_capture/video_capture_device_client_impl.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M services/video_capture/video_capture_device_factory_impl.h View 1 2 3 4 5 6 2 chunks +37 lines, -2 lines 0 comments Download
M services/video_capture/video_capture_device_factory_impl.cc View 1 2 3 4 5 2 chunks +39 lines, -4 lines 0 comments Download
D services/video_capture/video_capture_device_impl.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M services/video_capture/video_capture_service.h View 1 2 3 4 5 6 2 chunks +23 lines, -9 lines 0 comments Download
M services/video_capture/video_capture_service.cc View 1 2 3 4 5 6 2 chunks +45 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (19 generated)
chfremer
mcasas@: Please review general approach and style yzshen@: Please review Mojo aspects emircan@ & rockot@: ...
4 years, 4 months ago (2016-08-12 17:43:31 UTC) #3
mcasas
Comments, potentially simplifying this CL, so I'll stop here. https://codereview.chromium.org/2244763002/diff/20001/services/video_capture/public/interfaces/service_configurator.mojom File services/video_capture/public/interfaces/service_configurator.mojom (right): https://codereview.chromium.org/2244763002/diff/20001/services/video_capture/public/interfaces/service_configurator.mojom#newcode11 services/video_capture/public/interfaces/service_configurator.mojom:11: ...
4 years, 4 months ago (2016-08-12 23:38:37 UTC) #8
chfremer
mcasas@: PTAL Changes in PatchSet: * Renamed VideoCaptureDeviceAccess -> VideoCaptureDeviceProxy. * Renamed GetDeviceAccess() -> CreateDeviceProxy(). ...
4 years, 4 months ago (2016-08-15 20:10:35 UTC) #10
mcasas
https://codereview.chromium.org/2244763002/diff/40001/services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom File services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom (right): https://codereview.chromium.org/2244763002/diff/40001/services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom#newcode15 services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom:15: => (VideoCaptureDeviceDescriptor descriptor); I still feel that this should ...
4 years, 4 months ago (2016-08-16 02:18:13 UTC) #11
chfremer
mcasas@: PTAL I split out the rename to a separate CL. https://codereview.chromium.org/2244763002/diff/20001/services/video_capture/service_manifest.json File services/video_capture/service_manifest.json (right): ...
4 years, 4 months ago (2016-08-16 16:48:02 UTC) #14
yzshen1
https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/fake_video_capture_device_factory_configurator_impl.cc File services/video_capture/fake_video_capture_device_factory_configurator_impl.cc (right): https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/fake_video_capture_device_factory_configurator_impl.cc#newcode6 services/video_capture/fake_video_capture_device_factory_configurator_impl.cc:6: #include "services/video_capture/fake_video_capture_device_factory_configurator_impl.h" style nit: This should be the first ...
4 years, 4 months ago (2016-08-16 17:55:08 UTC) #15
chfremer
yzshen@: PTAL https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/fake_video_capture_device_factory_configurator_impl.cc File services/video_capture/fake_video_capture_device_factory_configurator_impl.cc (right): https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/fake_video_capture_device_factory_configurator_impl.cc#newcode6 services/video_capture/fake_video_capture_device_factory_configurator_impl.cc:6: #include "services/video_capture/fake_video_capture_device_factory_configurator_impl.h" On 2016/08/16 17:55:08, yzshen1 wrote: ...
4 years, 4 months ago (2016-08-16 18:34:41 UTC) #16
mcasas
https://codereview.chromium.org/2244763002/diff/40001/services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom File services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom (right): https://codereview.chromium.org/2244763002/diff/40001/services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom#newcode15 services/video_capture/public/interfaces/fake_video_capture_device_factory_configurator.mojom:15: => (VideoCaptureDeviceDescriptor descriptor); On 2016/08/16 16:48:02, chfremer wrote: > ...
4 years, 4 months ago (2016-08-16 21:43:03 UTC) #18
chfremer
mcasas@: PTAL (and sorry about the lengthy discussion thread, happy to chat offline if you ...
4 years, 4 months ago (2016-08-16 23:22:45 UTC) #19
yzshen1
https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/public/interfaces/BUILD.gn File services/video_capture/public/interfaces/BUILD.gn (right): https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/public/interfaces/BUILD.gn#newcode9 services/video_capture/public/interfaces/BUILD.gn:9: "fake_video_capture_device_factory_configurator.mojom", On 2016/08/16 18:34:40, chfremer wrote: > On 2016/08/16 ...
4 years, 4 months ago (2016-08-17 16:22:54 UTC) #20
chfremer
On 2016/08/17 16:22:54, yzshen1 wrote: > https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/public/interfaces/BUILD.gn > File services/video_capture/public/interfaces/BUILD.gn (right): > > https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/public/interfaces/BUILD.gn#newcode9 > ...
4 years, 4 months ago (2016-08-17 16:30:14 UTC) #21
yzshen1
On 2016/08/17 16:30:14, chfremer wrote: > On 2016/08/17 16:22:54, yzshen1 wrote: > > > https://codereview.chromium.org/2244763002/diff/80001/services/video_capture/public/interfaces/BUILD.gn ...
4 years, 4 months ago (2016-08-17 19:06:56 UTC) #22
chfremer
mcasas@: PTAL Removed interface and functionality for configuring multiple devices in fake factory. The fake ...
4 years, 4 months ago (2016-08-18 19:51:15 UTC) #23
mcasas
LGTM % comments https://codereview.chromium.org/2244763002/diff/120001/services/video_capture/service_unittest.cc File services/video_capture/service_unittest.cc (right): https://codereview.chromium.org/2244763002/diff/120001/services/video_capture/service_unittest.cc#newcode32 services/video_capture/service_unittest.cc:32: void HandleAddFakeVideoCaptureDeviceCallback( Unused? Remove if so. ...
4 years, 4 months ago (2016-08-18 21:11:22 UTC) #24
chfremer
tsepez@: PTAL *.mojom https://codereview.chromium.org/2244763002/diff/120001/services/video_capture/service_unittest.cc File services/video_capture/service_unittest.cc (right): https://codereview.chromium.org/2244763002/diff/120001/services/video_capture/service_unittest.cc#newcode32 services/video_capture/service_unittest.cc:32: void HandleAddFakeVideoCaptureDeviceCallback( On 2016/08/18 21:11:21, mcasas ...
4 years, 4 months ago (2016-08-19 16:10:19 UTC) #26
Tom Sepez
lgtm
4 years, 4 months ago (2016-08-19 17:30:44 UTC) #27
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/2244763002/140001
4 years, 4 months ago (2016-08-19 19:12:31 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 4 months ago (2016-08-19 19:17:01 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 19:18:58 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/262b6e71844a2fe0948c36c78ef1c91f9f02042d
Cr-Commit-Position: refs/heads/master@{#413205}

Powered by Google App Engine
This is Rietveld 408576698