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

Issue 2502483003: [Mojo Video Capture] Cleanup naming of classes/files in services/video_capture (Closed)

Created:
4 years, 1 month ago by chfremer
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, mcasas
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)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo Video Capture] Cleanup naming of classes/files in services/video_capture Goal of this CL is to use simple and consistent naming rules in services/video_capture. * Drop the "video_capture_" prefix from lots of files and classes, since it is redundant with the namespace. * Rename VideoCaptureDeviceProxyImpl to DeviceMediaToMojoAdapter, since that describes what it is and is consistent with the other adapter classes. * Replace *_mock_* with *_mojo_mock_* where appropriate to indicate that it is an adapter to a mock exposing a Mojo interface. This makes it consistent with other adapters exposing Mojo interfaces. * Rename Mojo interface MockVideoCaptureDevice to MockMediaDevice to better convey that the purpose of this is to mock out a media::VideoCaptureDevice. * Rename method CreateDeviceProxy() to CreateDevice(). This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.9.5a BUG=584797 TEST=video_capture_unittests, content_unittests, capture_unittests [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing Committed: https://crrev.com/acdfa002bf1486501e0dcaf7615895bb6d0d0beb Cr-Commit-Position: refs/heads/master@{#432647}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 6

Patch Set 3 : mcasas comments and git cl format #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -1574 lines) Patch
M services/video_capture/BUILD.gn View 4 chunks +15 lines, -15 lines 0 comments Download
D services/video_capture/device_client_media_to_mojo_adapter.h View 1 chunk +0 lines, -32 lines 0 comments Download
D services/video_capture/device_client_media_to_mojo_adapter.cc View 1 chunk +0 lines, -15 lines 0 comments Download
A + services/video_capture/device_client_media_to_mojo_mock_adapter.h View 3 chunks +7 lines, -7 lines 0 comments Download
A + services/video_capture/device_client_media_to_mojo_mock_adapter.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M services/video_capture/device_factory_media_to_mojo_adapter.h View 1 2 3 chunks +10 lines, -11 lines 0 comments Download
M services/video_capture/device_factory_media_to_mojo_adapter.cc View 1 2 6 chunks +14 lines, -14 lines 0 comments Download
A + services/video_capture/device_media_to_mojo_adapter.h View 1 2 2 chunks +14 lines, -14 lines 0 comments Download
A + services/video_capture/device_media_to_mojo_adapter.cc View 4 chunks +8 lines, -9 lines 0 comments Download
D services/video_capture/device_mock_to_media_adapter.h View 1 chunk +0 lines, -38 lines 0 comments Download
D services/video_capture/device_mock_to_media_adapter.cc View 1 chunk +0 lines, -45 lines 0 comments Download
A + services/video_capture/device_mojo_mock_to_media_adapter.h View 3 chunks +8 lines, -8 lines 0 comments Download
A + services/video_capture/device_mojo_mock_to_media_adapter.cc View 1 2 1 chunk +12 lines, -12 lines 0 comments Download
M services/video_capture/fake_device_descriptor_test.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/video_capture/fake_device_descriptor_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/video_capture/fake_device_descriptor_unittest.cc View 6 chunks +12 lines, -12 lines 0 comments Download
M services/video_capture/fake_device_test.h View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M services/video_capture/fake_device_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/video_capture/fake_device_unittest.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M services/video_capture/mock_device_factory.h View 3 chunks +5 lines, -6 lines 0 comments Download
M services/video_capture/mock_device_factory.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M services/video_capture/mock_device_test.h View 2 chunks +12 lines, -12 lines 0 comments Download
M services/video_capture/mock_device_test.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
A + services/video_capture/mock_media_device_impl.h View 2 chunks +8 lines, -8 lines 0 comments Download
A + services/video_capture/mock_media_device_impl.cc View 1 2 1 chunk +4 lines, -6 lines 0 comments Download
A + services/video_capture/mock_receiver.h View 2 chunks +8 lines, -8 lines 0 comments Download
A + services/video_capture/mock_receiver.cc View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
D services/video_capture/mock_video_capture_device_impl.h View 1 chunk +0 lines, -31 lines 0 comments Download
D services/video_capture/mock_video_capture_device_impl.cc View 1 chunk +0 lines, -20 lines 0 comments Download
D services/video_capture/mock_video_frame_receiver.h View 1 chunk +0 lines, -35 lines 0 comments Download
D services/video_capture/mock_video_frame_receiver.cc View 1 chunk +0 lines, -20 lines 0 comments Download
A + services/video_capture/public/cpp/capture_settings.h View 3 chunks +9 lines, -9 lines 0 comments Download
D services/video_capture/public/cpp/video_capture_settings.h View 1 chunk +0 lines, -47 lines 0 comments Download
M services/video_capture/public/interfaces/BUILD.gn View 1 chunk +7 lines, -7 lines 0 comments Download
A + services/video_capture/public/interfaces/capture_settings.mojom View 1 chunk +3 lines, -3 lines 0 comments Download
A + services/video_capture/public/interfaces/capture_settings.typemap View 1 chunk +7 lines, -7 lines 0 comments Download
A + services/video_capture/public/interfaces/capture_settings_traits.h View 1 2 1 chunk +18 lines, -19 lines 0 comments Download
A + services/video_capture/public/interfaces/capture_settings_traits.cc View 1 2 4 chunks +9 lines, -10 lines 0 comments Download
A + services/video_capture/public/interfaces/device.mojom View 1 2 1 chunk +6 lines, -8 lines 0 comments Download
A + services/video_capture/public/interfaces/device_descriptor.mojom View 1 chunk +1 line, -1 line 0 comments Download
A + services/video_capture/public/interfaces/device_descriptor.typemap View 1 chunk +4 lines, -4 lines 0 comments Download
A + services/video_capture/public/interfaces/device_descriptor_struct_traits.h View 1 2 3 chunks +7 lines, -8 lines 0 comments Download
A + services/video_capture/public/interfaces/device_descriptor_struct_traits.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + services/video_capture/public/interfaces/device_factory.mojom View 1 2 2 chunks +15 lines, -16 lines 0 comments Download
A + services/video_capture/public/interfaces/mock_device.mojom View 1 chunk +5 lines, -5 lines 0 comments Download
D services/video_capture/public/interfaces/mock_video_capture_device.mojom View 1 chunk +0 lines, -33 lines 0 comments Download
A + services/video_capture/public/interfaces/receiver.mojom View 1 chunk +2 lines, -2 lines 0 comments Download
A + services/video_capture/public/interfaces/service.mojom View 1 chunk +10 lines, -10 lines 0 comments Download
M services/video_capture/public/interfaces/typemaps.gni View 1 chunk +2 lines, -2 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_descriptor.mojom View 1 chunk +0 lines, -33 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_descriptor.typemap View 1 chunk +0 lines, -14 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_descriptor_struct_traits.h View 1 chunk +0 lines, -66 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_descriptor_struct_traits.cc View 1 chunk +0 lines, -141 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_factory.mojom View 1 chunk +0 lines, -47 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_device_proxy.mojom View 1 chunk +0 lines, -20 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_service.mojom View 1 chunk +0 lines, -25 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_settings.mojom View 1 chunk +0 lines, -21 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_settings.typemap View 1 chunk +0 lines, -21 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_settings_traits.h View 1 chunk +0 lines, -54 lines 0 comments Download
D services/video_capture/public/interfaces/video_capture_settings_traits.cc View 1 chunk +0 lines, -38 lines 0 comments Download
D services/video_capture/public/interfaces/video_frame_receiver.mojom View 1 chunk +0 lines, -16 lines 0 comments Download
M services/video_capture/receiver_mojo_to_media_adapter.h View 3 chunks +3 lines, -3 lines 0 comments Download
M services/video_capture/receiver_mojo_to_media_adapter.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/video_capture/service_impl.h View 1 2 3 chunks +17 lines, -21 lines 0 comments Download
A + services/video_capture/service_impl.cc View 1 2 5 chunks +18 lines, -21 lines 0 comments Download
M services/video_capture/service_main.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + services/video_capture/service_test.h View 1 chunk +6 lines, -6 lines 0 comments Download
A + services/video_capture/service_test.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
A + services/video_capture/service_unittest.cc View 4 chunks +7 lines, -7 lines 0 comments Download
D services/video_capture/video_capture_device_proxy_impl.h View 1 chunk +0 lines, -40 lines 0 comments Download
D services/video_capture/video_capture_device_proxy_impl.cc View 1 chunk +0 lines, -66 lines 0 comments Download
D services/video_capture/video_capture_service.h View 1 chunk +0 lines, -66 lines 0 comments Download
D services/video_capture/video_capture_service.cc View 1 chunk +0 lines, -111 lines 0 comments Download
D services/video_capture/video_capture_service_test.h View 1 chunk +0 lines, -31 lines 0 comments Download
D services/video_capture/video_capture_service_test.cc View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
D services/video_capture/video_capture_service_unittest.cc View 1 chunk +0 lines, -72 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 29 (20 generated)
chfremer
mcasas@: PTAL
4 years, 1 month ago (2016-11-14 20:01:33 UTC) #6
mcasas
lgtm with the style addressed. https://codereview.chromium.org/2502483003/diff/40001/services/video_capture/public/interfaces/device.mojom File services/video_capture/public/interfaces/device.mojom (right): https://codereview.chromium.org/2502483003/diff/40001/services/video_capture/public/interfaces/device.mojom#newcode18 services/video_capture/public/interfaces/device.mojom:18: Start(CaptureSettings requested_settings, reflow params ...
4 years, 1 month ago (2016-11-16 04:25:49 UTC) #14
chfremer
tsepez@: Please RS *.mojom, *struct_traits* https://codereview.chromium.org/2502483003/diff/40001/services/video_capture/public/interfaces/device.mojom File services/video_capture/public/interfaces/device.mojom (right): https://codereview.chromium.org/2502483003/diff/40001/services/video_capture/public/interfaces/device.mojom#newcode18 services/video_capture/public/interfaces/device.mojom:18: Start(CaptureSettings requested_settings, On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 17:14:12 UTC) #16
Tom Sepez
RS LGTM
4 years, 1 month ago (2016-11-16 18:35:42 UTC) #17
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/2502483003/60001
4 years, 1 month ago (2016-11-16 18:57:20 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/blimp_linux_dbg/builds/33827) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-16 19:04:36 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/2502483003/80001
4 years, 1 month ago (2016-11-16 19:16:34 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 1 month ago (2016-11-16 22:36:16 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 22:43:07 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/acdfa002bf1486501e0dcaf7615895bb6d0d0beb
Cr-Commit-Position: refs/heads/master@{#432647}

Powered by Google App Engine
This is Rietveld 408576698