|
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
Total comments: 13
Total comments: 17
Total comments: 16
|
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
|
Total messages: 33 (20 generated)
|