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

Issue 1515023002: Simplify interface for media/cast: CastTransportSenderImpl (Closed)

Created:
5 years ago by xjz
Modified:
4 years, 10 months ago
Reviewers:
Irfan, imcheng, miu, Wez
CC:
avayvod+watch_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jasonroberts+watch_google.com, miu+watch_chromium.org, xjz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify interface for media/cast: CastTransportSenderImpl Defined an interface to reduce the 11-arg constructor down to 4 args. BUG=557477 Committed: https://crrev.com/74f752173cf8084d9f96073eaa88236f0ac54b79 Cr-Commit-Position: refs/heads/master@{#377148}

Patch Set 1 #

Total comments: 5

Patch Set 2 : New interface and impl (no tests). #

Total comments: 14

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 41

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 18

Patch Set 7 : New version: move creating UdpTransport out and use setters for options. #

Total comments: 6

Patch Set 8 : Add changes on tests. #

Total comments: 26

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+782 lines, -606 lines) Patch
M chrome/browser/media/cast_transport_host_filter.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/media/cast_transport_host_filter.cc View 1 2 3 4 5 6 7 5 chunks +56 lines, -38 lines 0 comments Download
M chrome/renderer/media/cast_transport_sender_ipc.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M media/cast/net/cast_transport_config.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M media/cast/net/cast_transport_sender.h View 1 2 3 4 5 6 7 8 4 chunks +31 lines, -9 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl.h View 1 2 3 4 5 6 7 8 6 chunks +32 lines, -54 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl.cc View 1 2 3 4 5 6 7 12 chunks +72 lines, -119 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl_unittest.cc View 1 2 3 4 5 6 7 8 18 chunks +94 lines, -81 lines 0 comments Download
M media/cast/net/mock_cast_transport_sender.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/net/pacing/paced_sender.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M media/cast/net/pacing/paced_sender_unittest.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M media/cast/net/rtp/rtp_packetizer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M media/cast/net/udp_transport.h View 1 2 3 4 5 6 7 2 chunks +22 lines, -3 lines 0 comments Download
M media/cast/net/udp_transport.cc View 1 2 3 4 5 6 7 8 6 chunks +55 lines, -10 lines 0 comments Download
M media/cast/net/udp_transport_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/sender/audio_sender_unittest.cc View 1 2 3 4 5 6 7 6 chunks +30 lines, -23 lines 0 comments Download
M media/cast/sender/video_sender_unittest.cc View 1 2 3 4 5 6 7 17 chunks +50 lines, -46 lines 0 comments Download
M media/cast/test/cast_benchmarks.cc View 1 2 3 4 5 6 7 8 7 chunks +72 lines, -71 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 5 6 7 13 chunks +101 lines, -80 lines 0 comments Download
M media/cast/test/loopback_transport.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M media/cast/test/sender.cc View 1 2 3 4 5 6 7 8 2 chunks +31 lines, -8 lines 0 comments Download
M media/cast/test/simulator.cc View 1 2 3 4 5 6 7 5 chunks +56 lines, -41 lines 0 comments Download
M media/cast/test/utility/in_process_receiver.h View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
M media/cast/test/utility/in_process_receiver.cc View 1 2 3 4 5 6 7 8 3 chunks +22 lines, -13 lines 0 comments Download

Messages

Total messages: 43 (16 generated)
xjz
miu: PTAL this proposed interface change first. Thanks!
5 years ago (2015-12-10 23:52:13 UTC) #2
Irfan
https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h File media/cast/net/cast_transport_sender.h (left): https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h#oldcode66 media/cast/net/cast_transport_sender.h:66: const BulkRawEventsCallback& raw_events_callback, my feeling here is that only ...
5 years ago (2015-12-11 17:33:25 UTC) #3
xjz
On 2015/12/11 17:33:25, Irfan wrote: > https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h > File media/cast/net/cast_transport_sender.h (left): > > https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h#oldcode66 > ...
5 years ago (2015-12-11 18:30:06 UTC) #4
Irfan
https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h File media/cast/net/cast_transport_sender.h (right): https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h#newcode79 media/cast/net/cast_transport_sender.h:79: base::TickClock* clock, Perhaps the UDP transport fields can be ...
5 years ago (2015-12-11 18:56:05 UTC) #5
miu
https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h File media/cast/net/cast_transport_sender.h (right): https://codereview.chromium.org/1515023002/diff/1/media/cast/net/cast_transport_sender.h#newcode79 media/cast/net/cast_transport_sender.h:79: base::TickClock* clock, On 2015/12/11 18:56:04, Irfan wrote: > Perhaps ...
5 years ago (2015-12-12 01:30:45 UTC) #6
xjz
Thanks, Irfan and Yuri! PTAL. Changed the interface as suggested. Add Impl. Still no tests ...
5 years ago (2015-12-15 18:40:13 UTC) #7
Irfan
Think the commit message needs an update. Perhaps add someone like wez@ if you need ...
5 years ago (2015-12-15 22:23:13 UTC) #8
xjz
PTAL. Still NO tests yet. https://codereview.chromium.org/1515023002/diff/20001/chrome/browser/media/cast_transport_host_filter.cc File chrome/browser/media/cast_transport_host_filter.cc (right): https://codereview.chromium.org/1515023002/diff/20001/chrome/browser/media/cast_transport_host_filter.cc#newcode128 chrome/browser/media/cast_transport_host_filter.cc:128: TransportClient client(channel_id, this); On ...
5 years ago (2015-12-16 18:11:35 UTC) #12
Irfan
https://codereview.chromium.org/1515023002/diff/80001/chrome/browser/media/cast_transport_host_filter.cc File chrome/browser/media/cast_transport_host_filter.cc (right): https://codereview.chromium.org/1515023002/diff/80001/chrome/browser/media/cast_transport_host_filter.cc#newcode102 chrome/browser/media/cast_transport_host_filter.cc:102: channel_id_ = channel_id; as we discussed, this creates a ...
5 years ago (2015-12-16 19:44:34 UTC) #13
xjz
PTAL. Still NO tests. https://codereview.chromium.org/1515023002/diff/80001/chrome/browser/media/cast_transport_host_filter.cc File chrome/browser/media/cast_transport_host_filter.cc (right): https://codereview.chromium.org/1515023002/diff/80001/chrome/browser/media/cast_transport_host_filter.cc#newcode102 chrome/browser/media/cast_transport_host_filter.cc:102: channel_id_ = channel_id; On 2015/12/16 ...
5 years ago (2015-12-16 21:58:01 UTC) #14
Irfan
https://codereview.chromium.org/1515023002/diff/100001/chrome/browser/media/cast_transport_host_filter.cc File chrome/browser/media/cast_transport_host_filter.cc (right): https://codereview.chromium.org/1515023002/diff/100001/chrome/browser/media/cast_transport_host_filter.cc#newcode23 chrome/browser/media/cast_transport_host_filter.cc:23: base::WeakPtr<cast::CastTransportHostFilter> cast_transport_host_filter) If you use WeakPtr, I think you ...
5 years ago (2015-12-16 22:37:04 UTC) #15
imcheng
Overall looks fine. I agree with Irfan's comments. Also have some comments about CreateParams struct ...
5 years ago (2015-12-17 00:18:11 UTC) #16
xjz
PTAL. Still NO tests. https://codereview.chromium.org/1515023002/diff/100001/chrome/browser/media/cast_transport_host_filter.cc File chrome/browser/media/cast_transport_host_filter.cc (right): https://codereview.chromium.org/1515023002/diff/100001/chrome/browser/media/cast_transport_host_filter.cc#newcode23 chrome/browser/media/cast_transport_host_filter.cc:23: base::WeakPtr<cast::CastTransportHostFilter> cast_transport_host_filter) On 2015/12/16 22:37:04, ...
5 years ago (2015-12-17 22:54:58 UTC) #18
Wez
https://codereview.chromium.org/1515023002/diff/120001/media/cast/net/cast_transport_sender.h File media/cast/net/cast_transport_sender.h (right): https://codereview.chromium.org/1515023002/diff/120001/media/cast/net/cast_transport_sender.h#newcode105 media/cast/net/cast_transport_sender.h:105: const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); As discussed offline, having a CreateParams ...
5 years ago (2015-12-18 00:31:19 UTC) #19
xjz
PTAL. Still NO unit tests code changes in. https://codereview.chromium.org/1515023002/diff/120001/media/cast/net/cast_transport_sender.h File media/cast/net/cast_transport_sender.h (right): https://codereview.chromium.org/1515023002/diff/120001/media/cast/net/cast_transport_sender.h#newcode105 media/cast/net/cast_transport_sender.h:105: const ...
4 years, 11 months ago (2016-01-12 22:17:40 UTC) #20
miu
I like this code structure much better. The UDPTrasport params are now grouped nicely, and ...
4 years, 11 months ago (2016-01-16 02:28:42 UTC) #21
xjz
miu@: PTAL on this new version of the interface (still no change on test codes). ...
4 years, 11 months ago (2016-01-21 19:16:28 UTC) #23
miu
This looks absolutely great! The code factoring and structure is much cleaner, with functionality properly ...
4 years, 11 months ago (2016-01-27 02:18:04 UTC) #24
xjz
PTAL. Add changes on tests. https://codereview.chromium.org/1515023002/diff/180001/chrome/renderer/media/cast_transport_sender_ipc.cc File chrome/renderer/media/cast_transport_sender_ipc.cc (right): https://codereview.chromium.org/1515023002/diff/180001/chrome/renderer/media/cast_transport_sender_ipc.cc#newcode206 chrome/renderer/media/cast_transport_sender_ipc.cc:206: return nullptr; On 2016/01/27 ...
4 years, 10 months ago (2016-01-30 01:19:26 UTC) #29
miu
Patch Set 8 doesn't look like Patch Set 7 + unit tests. I'm not sure ...
4 years, 10 months ago (2016-02-04 20:23:28 UTC) #30
xjz
On 2016/02/04 20:23:28, miu wrote: > Patch Set 8 doesn't look like Patch Set 7 ...
4 years, 10 months ago (2016-02-05 00:04:29 UTC) #31
miu
Looking good. Mostly little things: https://codereview.chromium.org/1515023002/diff/280001/media/cast/net/cast_transport_config.h File media/cast/net/cast_transport_config.h (right): https://codereview.chromium.org/1515023002/diff/280001/media/cast/net/cast_transport_config.h#newcode141 media/cast/net/cast_transport_config.h:141: virtual void StartReceiving( 1. ...
4 years, 10 months ago (2016-02-22 22:38:48 UTC) #33
xjz
PTAL https://codereview.chromium.org/1515023002/diff/280001/media/cast/net/cast_transport_config.h File media/cast/net/cast_transport_config.h (right): https://codereview.chromium.org/1515023002/diff/280001/media/cast/net/cast_transport_config.h#newcode141 media/cast/net/cast_transport_config.h:141: virtual void StartReceiving( On 2016/02/22 22:38:48, miu wrote: ...
4 years, 10 months ago (2016-02-23 21:51:47 UTC) #36
miu
lgtm! Ship it! :)
4 years, 10 months ago (2016-02-23 23:36:00 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515023002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515023002/340001
4 years, 10 months ago (2016-02-24 00:05:53 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:340001)
4 years, 10 months ago (2016-02-24 00:20:26 UTC) #41
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 00:21:43 UTC) #43
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/74f752173cf8084d9f96073eaa88236f0ac54b79
Cr-Commit-Position: refs/heads/master@{#377148}

Powered by Google App Engine
This is Rietveld 408576698