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

Issue 163553006: Cast: Refactoring Cast API's (Closed)

Created:
6 years, 10 months ago by mikhal1
Modified:
6 years, 9 months ago
Reviewers:
Alpha Left Google
CC:
chromium-reviews, hclam+watch_chromium.org, mikhal+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, pwestin+watch_google.com, feature-media-reviews_chromium.org, hubbe+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Cast: Refactoring Cast API's Main changes: 1. Adding an IntializeAudio and InitializeVideo to CastSender. 2. Separating FrameInput to audio and video which enables initializing each separately. 3. Changing the CastSender and CastReceiver Create functions to return a scoped_ptr. These changes better align Cast with the Chromium pipeline. BUG=346822 R=hclam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255954

Patch Set 1 #

Total comments: 44

Patch Set 2 : Responding to review #

Total comments: 24

Patch Set 3 : Refactoring and responding to review #

Total comments: 27

Patch Set 4 : Updates and rebase #

Total comments: 4

Patch Set 5 : nits + rebase #

Patch Set 6 : rebase #

Patch Set 7 : yet another rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -377 lines) Patch
M chrome/renderer/media/cast_rtp_stream.cc View 1 2 3 4 5 6 7 8 chunks +15 lines, -24 lines 0 comments Download
M chrome/renderer/media/cast_session.h View 1 2 3 4 5 6 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/renderer/media/cast_session.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.h View 1 2 3 4 5 6 3 chunks +15 lines, -23 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.cc View 1 2 3 4 5 6 4 chunks +68 lines, -97 lines 0 comments Download
M media/cast/audio_sender/audio_encoder.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M media/cast/audio_sender/audio_sender.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/audio_sender/audio_sender.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M media/cast/cast_config.h View 1 chunk +0 lines, -11 lines 0 comments Download
M media/cast/cast_defines.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M media/cast/cast_receiver.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/cast/cast_receiver_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M media/cast/cast_sender.h View 1 2 3 3 chunks +44 lines, -28 lines 0 comments Download
M media/cast/cast_sender_impl.h View 1 2 3 1 chunk +22 lines, -18 lines 0 comments Download
M media/cast/cast_sender_impl.cc View 1 2 3 4 chunks +79 lines, -87 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 5 15 chunks +35 lines, -29 lines 0 comments Download
M media/cast/test/sender.cc View 1 2 3 4 5 9 chunks +33 lines, -28 lines 0 comments Download
M media/cast/test/utility/in_process_receiver.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/video_sender/video_sender.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/cast/video_sender/video_sender.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M media/cast/video_sender/video_sender_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
mikhal1
Please review, -Mikhal
6 years, 10 months ago (2014-02-13 17:05:01 UTC) #1
Ami GONE FROM CHROMIUM
I don't really know cast code so take my comments with a grain of salt. ...
6 years, 10 months ago (2014-02-13 18:02:14 UTC) #2
Alpha Left Google
https://codereview.chromium.org/163553006/diff/1/chrome/renderer/media/cast_session_delegate.cc File chrome/renderer/media/cast_session_delegate.cc (right): https://codereview.chromium.org/163553006/diff/1/chrome/renderer/media/cast_session_delegate.cc#newcode94 chrome/renderer/media/cast_session_delegate.cc:94: base::Unretained(this)), I too this this needs an explanation. Please ...
6 years, 10 months ago (2014-02-13 19:53:58 UTC) #3
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc File media/cast/cast_sender_impl.cc (right): https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc#newcode53 media/cast/cast_sender_impl.cc:53: video_sender_->InsertRawVideoFrame(video_frame, capture_time); On 2014/02/13 19:53:59, Alpha wrote: > On ...
6 years, 10 months ago (2014-02-13 20:43:49 UTC) #4
Alpha Left Google
https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc File media/cast/cast_sender_impl.cc (right): https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc#newcode53 media/cast/cast_sender_impl.cc:53: video_sender_->InsertRawVideoFrame(video_frame, capture_time); The reason doing a Bind in line ...
6 years, 10 months ago (2014-02-13 20:50:34 UTC) #5
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc File media/cast/cast_sender_impl.cc (right): https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc#newcode53 media/cast/cast_sender_impl.cc:53: video_sender_->InsertRawVideoFrame(video_frame, capture_time); On 2014/02/13 20:50:35, Alpha wrote: > The ...
6 years, 10 months ago (2014-02-13 20:57:31 UTC) #6
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc File media/cast/cast_sender_impl.cc (right): https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc#newcode53 media/cast/cast_sender_impl.cc:53: video_sender_->InsertRawVideoFrame(video_frame, capture_time); On 2014/02/13 20:57:31, Ami Fischman wrote: > ...
6 years, 10 months ago (2014-02-13 21:02:30 UTC) #7
Alpha Left Google
On 2014/02/13 21:02:30, Ami Fischman wrote: > https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc > File media/cast/cast_sender_impl.cc (right): > > https://codereview.chromium.org/163553006/diff/1/media/cast/cast_sender_impl.cc#newcode53 ...
6 years, 10 months ago (2014-02-13 21:09:19 UTC) #8
mikhal1
PTAL https://chromiumcodereview.appspot.com/163553006/diff/1/chrome/renderer/media/cast_session_delegate.cc File chrome/renderer/media/cast_session_delegate.cc (right): https://chromiumcodereview.appspot.com/163553006/diff/1/chrome/renderer/media/cast_session_delegate.cc#newcode94 chrome/renderer/media/cast_session_delegate.cc:94: base::Unretained(this)), Switching to a weak ptr. On 2014/02/13 ...
6 years, 10 months ago (2014-02-14 18:03:15 UTC) #9
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/163553006/diff/650001/chrome/renderer/media/cast_session_delegate.h File chrome/renderer/media/cast_session_delegate.h (right): https://chromiumcodereview.appspot.com/163553006/diff/650001/chrome/renderer/media/cast_session_delegate.h#newcode40 chrome/renderer/media/cast_session_delegate.h:40: class CastSessionDelegate : public base::SupportsWeakPtr<CastSessionDelegate> { Why this SupportsWeakPtr? ...
6 years, 10 months ago (2014-02-14 18:23:54 UTC) #10
mikhal1
New patch uploaded. In addition to the review comments, I made the following main refactoring ...
6 years, 10 months ago (2014-02-18 19:20:42 UTC) #11
mikhal1
Please hold on the review, as more changes are on their way.
6 years, 10 months ago (2014-02-18 19:43:41 UTC) #12
mikhal1
Second thought - All required changes to CastTransportSender will be done in a separate cl ...
6 years, 10 months ago (2014-02-18 21:54:29 UTC) #13
Alpha Left Google
On 2014/02/18 21:54:29, mikhal1 wrote: > Second thought - All required changes to CastTransportSender will ...
6 years, 10 months ago (2014-02-18 21:56:12 UTC) #14
mikhal1
On 2014/02/18 21:56:12, Alpha wrote: > On 2014/02/18 21:54:29, mikhal1 wrote: > > Second thought ...
6 years, 10 months ago (2014-02-18 21:57:10 UTC) #15
Alpha Left Google
https://codereview.chromium.org/163553006/diff/940008/chrome/renderer/media/cast_session_delegate.cc File chrome/renderer/media/cast_session_delegate.cc (right): https://codereview.chromium.org/163553006/diff/940008/chrome/renderer/media/cast_session_delegate.cc#newcode109 chrome/renderer/media/cast_session_delegate.cc:109: audio_frame_input_available_callback_.reset( This is very odd. We rarely use a ...
6 years, 10 months ago (2014-02-18 22:28:13 UTC) #16
mikhal1
Uploaded a new patch for review. The CastTransport was handled in a designated cl (https://codereview.chromium.org/174183003), ...
6 years, 9 months ago (2014-03-05 21:44:04 UTC) #17
mikhal1
ping
6 years, 9 months ago (2014-03-06 18:35:34 UTC) #18
Alpha Left Google
Two nits. https://codereview.chromium.org/163553006/diff/1230001/chrome/renderer/media/cast_session_delegate.cc File chrome/renderer/media/cast_session_delegate.cc (right): https://codereview.chromium.org/163553006/diff/1230001/chrome/renderer/media/cast_session_delegate.cc#newcode107 chrome/renderer/media/cast_session_delegate.cc:107: // local_endpoint_ = local_endpoint; These two lines ...
6 years, 9 months ago (2014-03-06 23:10:04 UTC) #19
mikhal1
PTAL https://chromiumcodereview.appspot.com/163553006/diff/1230001/chrome/renderer/media/cast_session_delegate.cc File chrome/renderer/media/cast_session_delegate.cc (right): https://chromiumcodereview.appspot.com/163553006/diff/1230001/chrome/renderer/media/cast_session_delegate.cc#newcode107 chrome/renderer/media/cast_session_delegate.cc:107: // local_endpoint_ = local_endpoint; On 2014/03/06 23:10:04, Alpha ...
6 years, 9 months ago (2014-03-06 23:38:52 UTC) #20
Alpha Left Google
lgtm
6 years, 9 months ago (2014-03-06 23:39:51 UTC) #21
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-06 23:48:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1250001
6 years, 9 months ago (2014-03-06 23:57:47 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 12:09:18 UTC) #24
commit-bot: I haz the power
Failed to apply patch for chrome/renderer/media/cast_session_delegate.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-07 12:09:21 UTC) #25
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-07 17:42:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1310001
6 years, 9 months ago (2014-03-07 17:44:57 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 18:22:49 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-07 18:22:49 UTC) #29
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-07 18:27:06 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1310001
6 years, 9 months ago (2014-03-07 18:28:34 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 18:32:34 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-07 18:32:35 UTC) #33
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-07 23:04:33 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1310001
6 years, 9 months ago (2014-03-07 23:06:38 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 23:06:45 UTC) #36
commit-bot: I haz the power
Failed to apply patch for chrome/renderer/media/cast_session_delegate.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-07 23:06:46 UTC) #37
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-07 23:56:41 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1330001
6 years, 9 months ago (2014-03-07 23:57:52 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1330001
6 years, 9 months ago (2014-03-08 11:12:06 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 13:52:51 UTC) #41
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234326
6 years, 9 months ago (2014-03-08 13:52:53 UTC) #42
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-08 15:21:13 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1330001
6 years, 9 months ago (2014-03-08 15:21:26 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 16:29:23 UTC) #45
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234444
6 years, 9 months ago (2014-03-08 16:29:24 UTC) #46
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-08 22:37:53 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1330001
6 years, 9 months ago (2014-03-08 22:38:04 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1330001
6 years, 9 months ago (2014-03-10 12:58:48 UTC) #49
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 12:58:55 UTC) #50
commit-bot: I haz the power
Failed to apply patch for media/cast/test/receiver.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-10 12:58:56 UTC) #51
mikhal1
The CQ bit was checked by mikhal@chromium.org
6 years, 9 months ago (2014-03-10 14:29:04 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1350001
6 years, 9 months ago (2014-03-10 14:34:00 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@chromium.org/163553006/1350001
6 years, 9 months ago (2014-03-10 15:59:28 UTC) #54
mikhal1
6 years, 9 months ago (2014-03-10 16:28:38 UTC) #55
Message was sent while issue was closed.
Committed patchset #8 manually as r255954 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698