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

Issue 2800493002: [Mojo Video Capture] Create abstraction VideoCaptureProvider (Closed)

Created:
3 years, 8 months ago by chfremer
Modified:
3 years, 8 months ago
Reviewers:
emircan, mcasas, miu, piman
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo Video Capture] Create abstraction VideoCaptureProvider This CL is supposed to be a pure refactoring. There should be no changes to existing behavior. This is part of a series of CLs with the goal of separating the class VideoCaptureManager from knowledge of things that are going to be private implementation details of the video capture service. The end goal is to have VideoCaptureManager talk to an abstraction that can be implemented by either the video capture Mojo service or the existing (legacy) in-process implementation. Changes in this CL: * Create abstraction VideoCaptureProvider, whose purpose is to hide the details of how device enumeration is performed and how a BuildableVideoCaptureDevice is created from class VideoCaptureManager. * Create an implementation InProcessVideoCaptureProvider which encapsulates the existing functionality for hosting devices in the browser process. This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL20. BUG=584797 TEST= capture_unittests --gtest_filter="*Video*" content_browsertests --gtest_filter="VideoCaptureBrowserTest.*" [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing Review-Url: https://codereview.chromium.org/2800493002 Cr-Commit-Position: refs/heads/master@{#463669} Committed: https://chromium.googlesource.com/chromium/src/+/3b099810e0616186a6a27798170db53b72c153ef

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 8

Patch Set 3 : Incorporated suggestions from PatchSet 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -150 lines) Patch
M content/browser/BUILD.gn View 1 2 chunks +3 lines, -1 line 0 comments Download
D content/browser/renderer_host/media/buildable_video_capture_device.h View 1 chunk +0 lines, -70 lines 0 comments Download
M content/browser/renderer_host/media/in_process_buildable_video_capture_device.h View 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/renderer_host/media/in_process_video_capture_provider.h View 1 chunk +40 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/in_process_video_capture_provider.cc View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_manager_unittest.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 4 chunks +11 lines, -10 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 4 chunks +3 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 7 chunks +17 lines, -18 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 6 chunks +9 lines, -19 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 5 chunks +11 lines, -22 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 2 chunks +6 lines, -2 lines 0 comments Download
A + content/browser/renderer_host/media/video_capture_provider.h View 1 2 2 chunks +17 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 36 (26 generated)
chfremer
miu@: PTAL
3 years, 8 months ago (2017-04-05 21:30:17 UTC) #8
chfremer
emircan@: PTAL mcasas@: FYI
3 years, 8 months ago (2017-04-07 17:51:58 UTC) #22
chfremer
On 2017/04/07 17:51:58, chfremer wrote: > emircan@: PTAL > mcasas@: FYI ping
3 years, 8 months ago (2017-04-10 16:33:35 UTC) #25
emircan
https://codereview.chromium.org/2800493002/diff/80001/content/browser/renderer_host/media/in_process_video_capture_provider.cc File content/browser/renderer_host/media/in_process_video_capture_provider.cc (right): https://codereview.chromium.org/2800493002/diff/80001/content/browser/renderer_host/media/in_process_video_capture_provider.cc#newcode17 content/browser/renderer_host/media/in_process_video_capture_provider.cc:17: InProcessVideoCaptureProvider::~InProcessVideoCaptureProvider() = default; This class is owned by VideoCaptureManager. ...
3 years, 8 months ago (2017-04-10 20:48:13 UTC) #26
chfremer
PTAL https://codereview.chromium.org/2800493002/diff/80001/content/browser/renderer_host/media/in_process_video_capture_provider.cc File content/browser/renderer_host/media/in_process_video_capture_provider.cc (right): https://codereview.chromium.org/2800493002/diff/80001/content/browser/renderer_host/media/in_process_video_capture_provider.cc#newcode17 content/browser/renderer_host/media/in_process_video_capture_provider.cc:17: InProcessVideoCaptureProvider::~InProcessVideoCaptureProvider() = default; On 2017/04/10 20:48:12, emircan wrote: ...
3 years, 8 months ago (2017-04-10 22:24:44 UTC) #27
emircan
lgtm
3 years, 8 months ago (2017-04-10 22:28:29 UTC) #28
chfremer
piman@: Please RS content/browser/BUILD.gn
3 years, 8 months ago (2017-04-10 22:39:02 UTC) #30
piman
lgtm
3 years, 8 months ago (2017-04-10 23:51:39 UTC) #31
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/2800493002/100001
3 years, 8 months ago (2017-04-11 16:19:38 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 17:31:56 UTC) #36
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/3b099810e0616186a6a27798170d...

Powered by Google App Engine
This is Rietveld 408576698