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

Issue 2457563002: Media Remoting: Add remoting control logic for encrypted contents. (Closed)

Created:
4 years, 1 month ago by xjz
Modified:
4 years, 1 month ago
Reviewers:
xhwang, miu, nasko, erickung1
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Remoting: Add remoting control logic for encrypted contents. This CL does the following: 1. Adds a RemotingCdmController to control whether to create CDM remotely for Media Remoting. 2. Renames the RemotingController to RemotingRendererController. 3. Separates the implementation of RemotingSource from RemotingRenderController to RemotingSourceImpl. After OnSetCdm() is called, one RemotingSourceImpl is shared by both RemotingRenderController and RemotingCdmController. BUG=643964 Committed: https://crrev.com/df8ea429178910ac6293e8e014fe307438fa099a Cr-Commit-Position: refs/heads/master@{#430730}

Patch Set 1 : PS #4 from https://codereview.chromium.org/2406483002/ #

Patch Set 2 : Rebase Only. #

Total comments: 11

Patch Set 3 : Addressed comments. #

Total comments: 10

Patch Set 4 : Addressed comments. #

Total comments: 8

Patch Set 5 : Addressed comments. #

Total comments: 84

Patch Set 6 : Rebased. Integrated with RemoteRendererImpl. #

Patch Set 7 : Addressed xhwang's comments. #

Total comments: 8

Patch Set 8 : Addressed comments. #

Patch Set 9 : Create RemotingSourceImpl before creating CDM. #

Patch Set 10 : Add RemotingSinkObserver. #

Patch Set 11 : Bug fix. #

Total comments: 30

Patch Set 12 : Addressed comments from PS#11. #

Total comments: 4

Patch Set 13 : Rebase. #

Total comments: 2

Patch Set 14 : Addressed comments from PS#12. Fixed ASAN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1542 lines, -853 lines) Patch
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +31 lines, -9 lines 0 comments Download
M media/base/cdm_context.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/cdm_context.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M media/remoting/BUILD.gn View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -3 lines 0 comments Download
M media/remoting/fake_remoting_controller.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M media/remoting/fake_remoting_controller.cc View 1 2 3 4 5 6 chunks +11 lines, -10 lines 0 comments Download
M media/remoting/remote_demuxer_stream_adapter.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/remoting/remote_renderer_impl.h View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M media/remoting/remote_renderer_impl.cc View 1 2 3 4 5 6 3 chunks +10 lines, -9 lines 0 comments Download
M media/remoting/remote_renderer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +24 lines, -22 lines 0 comments Download
A media/remoting/remoting_cdm.h View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
A media/remoting/remoting_cdm.cc View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A media/remoting/remoting_cdm_context.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A media/remoting/remoting_cdm_context.cc View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A media/remoting/remoting_cdm_controller.h View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
A media/remoting/remoting_cdm_controller.cc View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
A media/remoting/remoting_cdm_factory.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +60 lines, -0 lines 0 comments Download
A media/remoting/remoting_cdm_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +103 lines, -0 lines 0 comments Download
D media/remoting/remoting_controller.h View 1 2 3 4 5 1 chunk +0 lines, -131 lines 0 comments Download
D media/remoting/remoting_controller.cc View 1 2 3 4 5 1 chunk +0 lines, -272 lines 0 comments Download
D media/remoting/remoting_controller_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -93 lines 0 comments Download
A + media/remoting/remoting_renderer_controller.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +50 lines, -69 lines 0 comments Download
A media/remoting/remoting_renderer_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +239 lines, -0 lines 0 comments Download
A media/remoting/remoting_renderer_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +244 lines, -0 lines 0 comments Download
M media/remoting/remoting_renderer_factory.h View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M media/remoting/remoting_renderer_factory.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
A media/remoting/remoting_sink_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +41 lines, -0 lines 0 comments Download
A + media/remoting/remoting_sink_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -13 lines 0 comments Download
A media/remoting/remoting_source_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +157 lines, -0 lines 0 comments Download
A + media/remoting/remoting_source_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +160 lines, -203 lines 0 comments Download

Messages

Total messages: 72 (37 generated)
xjz
nasko: PTAL changes on content/renderer/*. xhwang: PTAL changes on media/base/*. miu: PS #1 is identical ...
4 years, 1 month ago (2016-10-26 22:41:19 UTC) #6
miu
Getting there. Comments on PS2: https://codereview.chromium.org/2457563002/diff/20001/media/remoting/remoting_cdm.h File media/remoting/remoting_cdm.h (right): https://codereview.chromium.org/2457563002/diff/20001/media/remoting/remoting_cdm.h#newcode61 media/remoting/remoting_cdm.h:61: const std::unique_ptr<RemotingCdmController> remoting_controller_; nit: ...
4 years, 1 month ago (2016-10-26 23:53:11 UTC) #7
xjz
https://codereview.chromium.org/2457563002/diff/20001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2457563002/diff/20001/media/remoting/remoting_renderer_controller.cc#newcode193 media/remoting/remoting_renderer_controller.cc:193: if (!remote_rendering_started_ && IsTerminated() && On 2016/10/26 23:53:10, miu ...
4 years, 1 month ago (2016-10-27 00:28:06 UTC) #9
nasko
content/ changes LGTM
4 years, 1 month ago (2016-10-27 20:34:08 UTC) #12
xjz
Addressed miu's comments. PTAL. miu: Sorry, I accidentally deleted PS#2 with your comments on while ...
4 years, 1 month ago (2016-10-27 22:45:58 UTC) #18
miu
https://codereview.chromium.org/2457563002/diff/120001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2457563002/diff/120001/media/remoting/remoting_renderer_controller.cc#newcode212 media/remoting/remoting_renderer_controller.cc:212: switch_renderer_cb_.Run(); On 2016/10/27 22:45:58, xjz wrote: > > From ...
4 years, 1 month ago (2016-10-29 02:22:17 UTC) #23
xjz
Addressed comments. PTAL. https://codereview.chromium.org/2457563002/diff/60002/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2457563002/diff/60002/media/remoting/remoting_renderer_controller.cc#newcode47 media/remoting/remoting_renderer_controller.cc:47: switch (remoting_source_->state()) { On 2016/10/29 02:22:16, ...
4 years, 1 month ago (2016-10-31 17:24:00 UTC) #25
xjz
xhwang: PTAL the changes in media/base/cdm_context.*. Thanks!
4 years, 1 month ago (2016-10-31 17:29:16 UTC) #28
miu
lgtm % code comment considerations: https://codereview.chromium.org/2457563002/diff/170001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2457563002/diff/170001/media/remoting/remoting_renderer_controller.cc#newcode155 media/remoting/remoting_renderer_controller.cc:155: if (!has_audio_ && !has_video_) ...
4 years, 1 month ago (2016-10-31 20:10:31 UTC) #31
xhwang
Sorry for the delay. I'll take a look today or tomorrow.
4 years, 1 month ago (2016-10-31 20:21:43 UTC) #32
xhwang
I accidentally reviewed all the files (except test) :) Here are my comments. I am ...
4 years, 1 month ago (2016-11-01 08:21:30 UTC) #34
xjz
Addressed miu's comments in PS# 5. Thanks! https://codereview.chromium.org/2457563002/diff/170001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2457563002/diff/170001/media/remoting/remoting_renderer_controller.cc#newcode155 media/remoting/remoting_renderer_controller.cc:155: if (!has_audio_ ...
4 years, 1 month ago (2016-11-01 16:45:45 UTC) #35
xhwang
https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm_controller.cc File media/remoting/remoting_cdm_controller.cc (right): https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm_controller.cc#newcode56 media/remoting/remoting_cdm_controller.cc:56: remoting_source_->StartRemoting(this); For the majority (say >99%) of playback sessions ...
4 years, 1 month ago (2016-11-01 16:52:37 UTC) #36
xjz
Addressed xhwang's comments. PTAL. https://codereview.chromium.org/2457563002/diff/190001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2457563002/diff/190001/content/renderer/render_frame_impl.cc#newcode6412 content/renderer/render_frame_impl.cc:6412: GetRemoterFactory())); On 2016/11/01 08:21:28, xhwang ...
4 years, 1 month ago (2016-11-01 21:55:54 UTC) #39
xhwang
In the future please address comments first, then rebase in a separate PS. Now it's ...
4 years, 1 month ago (2016-11-02 05:22:37 UTC) #40
xhwang
Thanks! I just have a few followup questions for discussion. Some comment could be in ...
4 years, 1 month ago (2016-11-02 06:47:05 UTC) #41
xjz
On 2016/11/02 05:22:37, xhwang wrote: > In the future please address comments first, then rebase ...
4 years, 1 month ago (2016-11-02 17:01:04 UTC) #42
xjz
Addressed xhwang's comments. PTAL. https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm.h File media/remoting/remoting_cdm.h (right): https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm.h#newcode32 media/remoting/remoting_cdm.h:32: RemotingSourceImpl* GetRemotingSource(); On 2016/11/02 06:47:05, ...
4 years, 1 month ago (2016-11-02 17:38:12 UTC) #43
miu
I'll re-review tomorrow. For now, some comments that'll hopefully help resolve on-going concerns: https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm.h File ...
4 years, 1 month ago (2016-11-03 00:03:08 UTC) #44
xjz
Addressed comments. PTAL. https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm_controller.cc File media/remoting/remoting_cdm_controller.cc (right): https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm_controller.cc#newcode56 media/remoting/remoting_cdm_controller.cc:56: remoting_source_->StartRemoting(this); On 2016/11/03 00:03:08, miu wrote: ...
4 years, 1 month ago (2016-11-03 00:30:15 UTC) #45
xhwang
https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm.h File media/remoting/remoting_cdm.h (right): https://codereview.chromium.org/2457563002/diff/190001/media/remoting/remoting_cdm.h#newcode32 media/remoting/remoting_cdm.h:32: RemotingSourceImpl* GetRemotingSource(); On 2016/11/03 00:03:08, miu wrote: > On ...
4 years, 1 month ago (2016-11-03 06:41:01 UTC) #46
xjz
xhwang and miu: In PS# 10, I add a RemotingSinkObserver to monitor the remoting sink ...
4 years, 1 month ago (2016-11-04 19:13:43 UTC) #48
xhwang
lgtm % nits https://codereview.chromium.org/2457563002/diff/390001/media/remoting/remoting_cdm_context.h File media/remoting/remoting_cdm_context.h (right): https://codereview.chromium.org/2457563002/diff/390001/media/remoting/remoting_cdm_context.h#newcode25 media/remoting/remoting_cdm_context.h:25: RemotingSourceImpl* GetRemotingSource(); based on the discussion, ...
4 years, 1 month ago (2016-11-05 02:39:58 UTC) #50
miu
Very nice work! This is a very complex problem to solve! :) Almost there; comments ...
4 years, 1 month ago (2016-11-05 04:05:16 UTC) #51
xjz
Thanks for detailed reviewing! xhwang@ and miu@: Addressed your comments in PS#12. PTAL. Thanks! https://codereview.chromium.org/2457563002/diff/390001/content/renderer/render_frame_impl.cc ...
4 years, 1 month ago (2016-11-07 19:03:55 UTC) #52
miu
PS12 lgtm % nits: https://codereview.chromium.org/2457563002/diff/410001/media/remoting/remoting_cdm_factory.cc File media/remoting/remoting_cdm_factory.cc (right): https://codereview.chromium.org/2457563002/diff/410001/media/remoting/remoting_cdm_factory.cc#newcode42 media/remoting/remoting_cdm_factory.cc:42: // avoid the possible delay ...
4 years, 1 month ago (2016-11-07 21:54:02 UTC) #55
erickung1
https://codereview.chromium.org/2457563002/diff/430001/media/remoting/remoting_cdm_context.h File media/remoting/remoting_cdm_context.h (right): https://codereview.chromium.org/2457563002/diff/430001/media/remoting/remoting_cdm_context.h#newcode16 media/remoting/remoting_cdm_context.h:16: class RemotingCdmContext : public CdmContext { I found it ...
4 years, 1 month ago (2016-11-07 22:03:15 UTC) #56
xjz
Addressed comments. Thanks for reviewing! https://codereview.chromium.org/2457563002/diff/410001/media/remoting/remoting_cdm_factory.cc File media/remoting/remoting_cdm_factory.cc (right): https://codereview.chromium.org/2457563002/diff/410001/media/remoting/remoting_cdm_factory.cc#newcode42 media/remoting/remoting_cdm_factory.cc:42: // avoid the possible ...
4 years, 1 month ago (2016-11-08 00:59:06 UTC) #59
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/2457563002/450001
4 years, 1 month ago (2016-11-08 00:59:50 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/327328)
4 years, 1 month ago (2016-11-08 05:52:22 UTC) #64
erickung1
https://codereview.chromium.org/2457563002/diff/390001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2457563002/diff/390001/media/remoting/remoting_renderer_controller.cc#newcode89 media/remoting/remoting_renderer_controller.cc:89: return remoting_source_->GetRpcBroker(); On 2016/11/07 19:03:55, xjz wrote: > On ...
4 years, 1 month ago (2016-11-08 09:39:45 UTC) #65
xhwang
https://codereview.chromium.org/2457563002/diff/390001/media/remoting/remoting_cdm_context.h File media/remoting/remoting_cdm_context.h (right): https://codereview.chromium.org/2457563002/diff/390001/media/remoting/remoting_cdm_context.h#newcode25 media/remoting/remoting_cdm_context.h:25: RemotingSourceImpl* GetRemotingSource(); On 2016/11/07 19:03:54, xjz wrote: > On ...
4 years, 1 month ago (2016-11-08 17:39:20 UTC) #66
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/2457563002/450001
4 years, 1 month ago (2016-11-08 18:23:36 UTC) #68
commit-bot: I haz the power
Committed patchset #14 (id:450001)
4 years, 1 month ago (2016-11-08 22:01:26 UTC) #70
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 22:05:08 UTC) #72
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/df8ea429178910ac6293e8e014fe307438fa099a
Cr-Commit-Position: refs/heads/master@{#430730}

Powered by Google App Engine
This is Rietveld 408576698