Description[Mojo Video Capture] Introduce abstraction VideoCaptureSystem
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:
* Move nested struct VideoCaptureManager::DeviceInfo to struct
media::VideoCaptureDeviceInfo.
* Create abstraction VideoCaptureSystem and move caching of
VideoCaptureDeviceInfo to there. This allows us to use this functionality in
both InProcess and MojoService code paths.
* Simplify BuildableDeviceCallbacks interface. With the mapping from device_id
to descriptor being moved into VideoCaptureSystem, BuildableDeviceCallbacks no
longer needs to offer a LookupDeviceDescriptor() method.
This CL is part of the Mojo Video Capture work. For the bigger picture,
see [1] CL18.
BUG=584797
TEST=
content_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/2769543002
Cr-Commit-Position: refs/heads/master@{#461845}
Committed: https://chromium.googlesource.com/chromium/src/+/8d8a5d278461d098d3481acf52275bb931f834f3
Patch Set 1 #
Total comments: 26
Patch Set 2 : Incorporated suggestions from PatchSet 1 #Patch Set 3 : Rebase to March 30 #Patch Set 4 : Add missing ampersand to pass string by reference + Similarity 50 #Patch Set 5 : Fix for code that should only be run for MEDIA_DEVICE_VIDEO_CAPTURE #
Total comments: 12
Patch Set 6 : Incorporated suggestions from PatchSet 5 #Depends on Patchset: Dependent Patchsets: Messages
Total messages: 38 (27 generated)
|