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

Issue 2643253003: Media Remoting Clean-up: Less-redundant naming, style consistency, etc. (Closed)

Created:
3 years, 11 months ago by miu
Modified:
3 years, 11 months ago
Reviewers:
xjz, ncarter (slow)
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, chromoting-reviews_chromium.org, nasko+codewatch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, apacible+watch_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org, erickung+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Remoting Clean-up: Less-redundant naming, style consistency, etc. Now that most of the implementation is complete, this change revisits our naming and namespacing strategy. An obvious issue is that all our code had "remote" or "remoting" in its class/variable names, which is redundant. Also, some code was put in a media::remoting namespace, while other code was in the media namespace with "remoting" in the class name. Finally, some code was in subdirectories, but the code base did not turn out to be so large to warrant that. This change places all code in the src/media/remoting dir in the media::remoting namespace, makes some minor style fixes, and tweaks comments around touched lines of code. The following classes have been renamed: 1. RemoteRendererImpl --> CourierRenderer because it is an impl of media::Renderer that maps all operations and callbacks into two-way RPC messaging, to give the local media pipeline the illusion of having a local Renderer, but with rendering actually occurring remotely. 2. RemoteDemuxerStreamAdapter --> DemuxerStreamAdapter: Removed redundant "Remote" from the name since this class is disambiguated by being in the media::remoting namespace. 3. RemotingSourceImpl --> SharedSession because it is an impl of media::mojom::RemotingSource that is shared by multiple "clients." 4. RemotingSinkObsever --> SinkAvailabilityObserver, to be more-specific about its purpose. 5. RemotingRendererFactory --> AdaptiveRendererFactory because this RendererFactory "wraps" the normal RendererFactory to create either local or remoting renderers depending on the current situation. 6. RemotingRendererController --> RendererController: Removed redundant "Remoting" from the name because this class is disambiguated by being in the media::remoting namespace. 7. Miscellaneous similar renames in "fake" classes and other testing- only code. Note: The RemotingCdm* classes were not changed because there is current WIP to merge-in more implementation. Renaming there will occur in a later change. BUG=643964 Review-Url: https://codereview.chromium.org/2643253003 Cr-Commit-Position: refs/heads/master@{#445880} Committed: https://chromium.googlesource.com/chromium/src/+/9f7788ef57ae0e0bf11a81f027512b9798983561

Patch Set 1 #

Total comments: 13

Patch Set 2 : REBASE #

Total comments: 17

Patch Set 3 : Addressed 1st-round comments. UserExperienceController->RendererController #

Total comments: 16

Patch Set 4 : SituationalRendererFactory --> AdaptiveRendererFactory, plus minor tweaks #

Patch Set 5 : REBASE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1425 lines, -8882 lines) Patch
M content/renderer/render_frame_impl.h View 1 2 3 4 3 chunks +8 lines, -10 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 6 chunks +23 lines, -27 lines 0 comments Download
M media/remoting/BUILD.gn View 1 2 3 4 chunks +33 lines, -30 lines 0 comments Download
A + media/remoting/adaptive_renderer_factory.h View 1 2 3 2 chunks +14 lines, -13 lines 0 comments Download
A + media/remoting/adaptive_renderer_factory.cc View 1 2 3 2 chunks +12 lines, -12 lines 0 comments Download
A + media/remoting/courier_renderer.h View 1 2 3 9 chunks +55 lines, -56 lines 0 comments Download
A + media/remoting/courier_renderer.cc View 1 2 3 32 chunks +172 lines, -189 lines 0 comments Download
A + media/remoting/courier_renderer_unittest.cc View 1 2 3 23 chunks +122 lines, -145 lines 0 comments Download
A + media/remoting/demuxer_stream_adapter.h View 10 chunks +30 lines, -28 lines 0 comments Download
A + media/remoting/demuxer_stream_adapter.cc View 1 2 14 chunks +67 lines, -72 lines 0 comments Download
A + media/remoting/demuxer_stream_adapter_unittest.cc View 13 chunks +36 lines, -36 lines 0 comments Download
A + media/remoting/fake_demuxer_stream_provider.h View 3 chunks +15 lines, -13 lines 0 comments Download
A + media/remoting/fake_demuxer_stream_provider.cc View 5 chunks +24 lines, -23 lines 0 comments Download
A + media/remoting/fake_remoter.h View 2 chunks +8 lines, -7 lines 0 comments Download
A + media/remoting/fake_remoter.cc View 3 chunks +14 lines, -12 lines 0 comments Download
D media/remoting/fake_remoting_controller.h View 1 chunk +0 lines, -107 lines 0 comments Download
D media/remoting/fake_remoting_controller.cc View 1 chunk +0 lines, -191 lines 0 comments Download
D media/remoting/fake_remoting_demuxer_stream_provider.h View 1 chunk +0 lines, -67 lines 0 comments Download
D media/remoting/fake_remoting_demuxer_stream_provider.cc View 1 chunk +0 lines, -115 lines 0 comments Download
A + media/remoting/interstitial.h View 1 3 chunks +12 lines, -9 lines 0 comments Download
A + media/remoting/interstitial.cc View 1 2 3 9 chunks +35 lines, -32 lines 0 comments Download
D media/remoting/proto/remoting_rpc_message.proto View 1 chunk +0 lines, -598 lines 0 comments Download
A + media/remoting/proto_enum_utils.h View 3 chunks +37 lines, -39 lines 0 comments Download
A + media/remoting/proto_enum_utils.cc View 31 chunks +64 lines, -66 lines 0 comments Download
A + media/remoting/proto_utils.h View 7 chunks +29 lines, -27 lines 0 comments Download
A + media/remoting/proto_utils.cc View 17 chunks +76 lines, -74 lines 0 comments Download
A + media/remoting/proto_utils_unittest.cc View 5 chunks +42 lines, -11 lines 0 comments Download
D media/remoting/remote_demuxer_stream_adapter.h View 1 chunk +0 lines, -194 lines 0 comments Download
D media/remoting/remote_demuxer_stream_adapter.cc View 1 chunk +0 lines, -447 lines 0 comments Download
D media/remoting/remote_demuxer_stream_adapter_unittest.cc View 1 chunk +0 lines, -298 lines 0 comments Download
D media/remoting/remote_renderer_impl.h View 1 1 chunk +0 lines, -241 lines 0 comments Download
D media/remoting/remote_renderer_impl.cc View 1 1 chunk +0 lines, -866 lines 0 comments Download
D media/remoting/remote_renderer_impl_unittest.cc View 1 chunk +0 lines, -567 lines 0 comments Download
M media/remoting/remoting_cdm.h View 3 chunks +5 lines, -1 line 0 comments Download
M media/remoting/remoting_cdm.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M media/remoting/remoting_cdm_context.h View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M media/remoting/remoting_cdm_context.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M media/remoting/remoting_cdm_controller.h View 1 2 3 chunks +11 lines, -13 lines 0 comments Download
M media/remoting/remoting_cdm_controller.cc View 3 chunks +10 lines, -9 lines 0 comments Download
M media/remoting/remoting_cdm_factory.h View 2 chunks +6 lines, -4 lines 0 comments Download
M media/remoting/remoting_cdm_factory.cc View 3 chunks +7 lines, -6 lines 0 comments Download
D media/remoting/remoting_interstitial_ui.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D media/remoting/remoting_interstitial_ui.cc View 1 1 chunk +0 lines, -174 lines 0 comments Download
D media/remoting/remoting_renderer_controller.h View 1 chunk +0 lines, -223 lines 0 comments Download
D media/remoting/remoting_renderer_controller.cc View 1 chunk +0 lines, -481 lines 0 comments Download
D media/remoting/remoting_renderer_controller_unittest.cc View 1 chunk +0 lines, -353 lines 0 comments Download
D media/remoting/remoting_renderer_factory.h View 1 chunk +0 lines, -39 lines 0 comments Download
D media/remoting/remoting_renderer_factory.cc View 1 chunk +0 lines, -41 lines 0 comments Download
D media/remoting/remoting_sink_observer.h View 1 chunk +0 lines, -52 lines 0 comments Download
D media/remoting/remoting_sink_observer.cc View 1 chunk +0 lines, -25 lines 0 comments Download
D media/remoting/remoting_source_impl.h View 1 chunk +0 lines, -171 lines 0 comments Download
D media/remoting/remoting_source_impl.cc View 1 chunk +0 lines, -236 lines 0 comments Download
A + media/remoting/renderer_controller.h View 1 2 3 9 chunks +42 lines, -46 lines 0 comments Download
A + media/remoting/renderer_controller.cc View 1 2 16 chunks +108 lines, -116 lines 0 comments Download
A + media/remoting/renderer_controller_unittest.cc View 1 2 4 chunks +129 lines, -132 lines 0 comments Download
A + media/remoting/rpc.proto View 0 chunks +-1 lines, --1 lines 0 comments Download
D media/remoting/rpc/proto_enum_utils.h View 1 chunk +0 lines, -112 lines 0 comments Download
D media/remoting/rpc/proto_enum_utils.cc View 1 chunk +0 lines, -591 lines 0 comments Download
D media/remoting/rpc/proto_utils.h View 1 chunk +0 lines, -131 lines 0 comments Download
D media/remoting/rpc/proto_utils.cc View 1 chunk +0 lines, -473 lines 0 comments Download
D media/remoting/rpc/proto_utils_unittest.cc View 1 chunk +0 lines, -166 lines 0 comments Download
D media/remoting/rpc/rpc_broker.h View 1 chunk +0 lines, -102 lines 0 comments Download
D media/remoting/rpc/rpc_broker.cc View 1 chunk +0 lines, -109 lines 0 comments Download
D media/remoting/rpc/rpc_broker_unittest.cc View 1 chunk +0 lines, -240 lines 0 comments Download
A + media/remoting/rpc_broker.h View 4 chunks +15 lines, -11 lines 0 comments Download
A + media/remoting/rpc_broker.cc View 3 chunks +3 lines, -3 lines 0 comments Download
A + media/remoting/rpc_broker_unittest.cc View 8 chunks +14 lines, -14 lines 0 comments Download
A + media/remoting/shared_session.h View 1 2 6 chunks +57 lines, -58 lines 0 comments Download
A + media/remoting/shared_session.cc View 8 chunks +56 lines, -68 lines 0 comments Download
A + media/remoting/sink_availability_observer.h View 2 chunks +12 lines, -10 lines 0 comments Download
A + media/remoting/sink_availability_observer.cc View 1 chunk +7 lines, -5 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
miu
xjz: PTAL. I would suggest just skimming over everything, to spot-check things. I basically did ...
3 years, 11 months ago (2017-01-20 23:14:41 UTC) #4
xjz
Looks great! https://codereview.chromium.org/2643253003/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (left): https://codereview.chromium.org/2643253003/diff/1/content/renderer/render_frame_impl.cc#oldcode2769 content/renderer/render_frame_impl.cc:2769: RenderFrameImpl::CreateRemotingRendererController() { On 2017/01/20 23:14:41, miu wrote: ...
3 years, 11 months ago (2017-01-21 06:12:34 UTC) #7
miu
Naming is hard. I've taken awhile to consider your comments, made some changes, but discussed ...
3 years, 11 months ago (2017-01-23 20:57:37 UTC) #8
xjz
LGTM % some typos and nits. https://codereview.chromium.org/2643253003/diff/20001/media/remoting/courier_renderer.h File media/remoting/courier_renderer.h (right): https://codereview.chromium.org/2643253003/diff/20001/media/remoting/courier_renderer.h#newcode44 media/remoting/courier_renderer.h:44: class CourierRenderer : ...
3 years, 11 months ago (2017-01-23 23:08:14 UTC) #9
miu
https://codereview.chromium.org/2643253003/diff/20001/media/remoting/courier_renderer.h File media/remoting/courier_renderer.h (right): https://codereview.chromium.org/2643253003/diff/20001/media/remoting/courier_renderer.h#newcode44 media/remoting/courier_renderer.h:44: class CourierRenderer : public Renderer { On 2017/01/23 23:08:13, ...
3 years, 11 months ago (2017-01-24 00:19:40 UTC) #11
miu
nick: PTAL (OWNERS) at changes to content/renderer/render_frame_impl.cc. These are all due to class renames in ...
3 years, 11 months ago (2017-01-24 00:23:51 UTC) #13
ncarter (slow)
content lgtm
3 years, 11 months ago (2017-01-24 18:12:20 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/2643253003/80001
3 years, 11 months ago (2017-01-24 20:56:09 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/199289)
3 years, 11 months ago (2017-01-24 21:33:41 UTC) #24
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/2643253003/80001
3 years, 11 months ago (2017-01-24 23:37:29 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/349313)
3 years, 11 months ago (2017-01-24 23:45:35 UTC) #28
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/2643253003/80001
3 years, 11 months ago (2017-01-24 23:55:50 UTC) #30
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 00:46:58 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9f7788ef57ae0e0bf11a81f02751...

Powered by Google App Engine
This is Rietveld 408576698