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

Issue 314593002: [Cast] Cleanup: Remove TransportXXXXXSender, an unnecessary layer of indirection. (Closed)

Created:
6 years, 6 months ago by miu
Modified:
6 years, 6 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Visibility:
Public.

Description

[Cast] Cleanup: Remove TransportXXXXXSender, an unnecessary layer of indirection. In src/media/cast/transport, both TransportAudioSender and TransportVideoSender were identical classes/implementations. In addition, they did nothing but wrap RtpSender, passing EncodedFrame data through the encryption library. Instead of merging them into one class, both have been deleted, with the encryption calls moved into AudioSender/VideoSender. Testing: Confirmed all unit tests continue to pass. Also, manually tested with a browser build, with DVLOG output to confirm encryption was successfully enabled for a cast session. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274769

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Restored/Improved CastSenderImpl VLOGging. #

Total comments: 4

Patch Set 3 : Move encryption into CastTransportSenderImpl so it happens in the browser process. #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : Fix CastTransportHostFilterTest.SimpleMessages. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -349 lines) Patch
M chrome/browser/media/cast_transport_host_filter_unittest.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M media/cast/audio_sender/audio_sender.h View 1 2 4 chunks +9 lines, -6 lines 0 comments Download
M media/cast/audio_sender/audio_sender.cc View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M media/cast/cast.gyp View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M media/cast/cast_sender_impl.cc View 1 4 chunks +17 lines, -11 lines 0 comments Download
M media/cast/transport/cast_transport_config.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M media/cast/transport/cast_transport_config.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M media/cast/transport/cast_transport_sender.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M media/cast/transport/cast_transport_sender_impl.h View 1 2 2 chunks +11 lines, -4 lines 0 comments Download
M media/cast/transport/cast_transport_sender_impl.cc View 1 2 3 chunks +50 lines, -12 lines 0 comments Download
D media/cast/transport/transport_audio_sender.h View 1 chunk +0 lines, -65 lines 0 comments Download
D media/cast/transport/transport_audio_sender.cc View 1 chunk +0 lines, -73 lines 0 comments Download
D media/cast/transport/transport_video_sender.h View 1 chunk +0 lines, -69 lines 0 comments Download
D media/cast/transport/transport_video_sender.cc View 1 chunk +0 lines, -73 lines 0 comments Download
M media/cast/transport/utility/transport_encryption_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/cast/video_sender/video_sender.h View 1 2 3 chunks +13 lines, -4 lines 0 comments Download
M media/cast/video_sender/video_sender.cc View 1 2 3 9 chunks +9 lines, -12 lines 0 comments Download
M media/cast/video_sender/video_sender_unittest.cc View 4 chunks +1 line, -10 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
miu
hubbe: PTAL.
6 years, 6 months ago (2014-06-03 05:27:15 UTC) #1
Alpha Left Google
Thanks! This is a longer needed cleanup. https://codereview.chromium.org/314593002/diff/20001/media/cast/cast_sender_impl.cc File media/cast/cast_sender_impl.cc (left): https://codereview.chromium.org/314593002/diff/20001/media/cast/cast_sender_impl.cc#oldcode121 media/cast/cast_sender_impl.cc:121: VLOG(1) << ...
6 years, 6 months ago (2014-06-03 18:48:34 UTC) #2
miu
Thanks for the review Alpha. Addressed your comment: https://codereview.chromium.org/314593002/diff/20001/media/cast/cast_sender_impl.cc File media/cast/cast_sender_impl.cc (left): https://codereview.chromium.org/314593002/diff/20001/media/cast/cast_sender_impl.cc#oldcode121 media/cast/cast_sender_impl.cc:121: VLOG(1) ...
6 years, 6 months ago (2014-06-03 19:57:50 UTC) #3
Alpha Left Google
https://codereview.chromium.org/314593002/diff/40001/media/cast/audio_sender/audio_sender.h File media/cast/audio_sender/audio_sender.h (right): https://codereview.chromium.org/314593002/diff/40001/media/cast/audio_sender/audio_sender.h#newcode73 media/cast/audio_sender/audio_sender.h:73: transport::TransportEncryptionHandler encryptor_; It is by design to have encryption ...
6 years, 6 months ago (2014-06-03 20:01:52 UTC) #4
miu
Moved encryption back into browser process. PTAL. https://codereview.chromium.org/314593002/diff/40001/media/cast/audio_sender/audio_sender.h File media/cast/audio_sender/audio_sender.h (right): https://codereview.chromium.org/314593002/diff/40001/media/cast/audio_sender/audio_sender.h#newcode73 media/cast/audio_sender/audio_sender.h:73: transport::TransportEncryptionHandler encryptor_; ...
6 years, 6 months ago (2014-06-03 21:55:15 UTC) #5
hubbe
https://codereview.chromium.org/314593002/diff/60001/media/cast/transport/cast_transport_sender.h File media/cast/transport/cast_transport_sender.h (right): https://codereview.chromium.org/314593002/diff/60001/media/cast/transport/cast_transport_sender.h#newcode80 media/cast/transport/cast_transport_sender.h:80: virtual void InsertCodedAudioFrame(const EncodedFrame& audio_frame) = 0; How about ...
6 years, 6 months ago (2014-06-03 22:42:22 UTC) #6
miu
https://codereview.chromium.org/314593002/diff/60001/media/cast/transport/cast_transport_sender.h File media/cast/transport/cast_transport_sender.h (right): https://codereview.chromium.org/314593002/diff/60001/media/cast/transport/cast_transport_sender.h#newcode80 media/cast/transport/cast_transport_sender.h:80: virtual void InsertCodedAudioFrame(const EncodedFrame& audio_frame) = 0; On 2014/06/03 ...
6 years, 6 months ago (2014-06-03 23:32:56 UTC) #7
Alpha Left Google
lgtm
6 years, 6 months ago (2014-06-03 23:33:56 UTC) #8
miu
The CQ bit was checked by miu@chromium.org
6 years, 6 months ago (2014-06-03 23:58:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/314593002/80001
6 years, 6 months ago (2014-06-04 00:00:20 UTC) #10
miu
The CQ bit was unchecked by miu@chromium.org
6 years, 6 months ago (2014-06-04 04:04:48 UTC) #11
miu
The CQ bit was checked by miu@chromium.org
6 years, 6 months ago (2014-06-04 04:28:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/314593002/100001
6 years, 6 months ago (2014-06-04 04:30:03 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 06:21:17 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 11:19:25 UTC) #15
Message was sent while issue was closed.
Change committed as 274769

Powered by Google App Engine
This is Rietveld 408576698