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

Issue 2900773004: media: Add experimental feature to enable Mojo CDM on desktop Chromium (Closed)

Created:
3 years, 7 months ago by xhwang
Modified:
3 years, 7 months ago
Reviewers:
jrummell, jam
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, eme-reviews_chromium.org, nasko+codewatch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, ddorwin, Ken Rockot(use gerrit already)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Add experimental feature to enable Mojo CDM on desktop Chromium Currently in Chromium, the CDM is hosted by the CDM adapter which is a pepper plugin. This CL updates the build flags such that when pepper CDMs are enabled, we also enable hosting the CDM using mojo in an unsandboxed utility process. By default, pepper CDM will always be used and mojo CDM is disabled. A new base::Feature is added such that developers and testers can enable mojo CDM for early prototyping and testing. To enable mojo CDM, please add the following command line options: --enable-features=MojoCdm Detailed changes in this CL: - Updated build flags to enable mojo CDM in utility process when pepper CDMs are enabled. - Add a base::Feature media::kMojoCdm to enable mojo CDM at run time. - Add CdmAdapterFactory to create CdmAdapter, which hosts the CDM binary. - Register MediaService in the utility process to create CdmAdapterFactory when requested. - Also copy base::Feature flags on command line for utility process. Note that Mojo CDM on desktop Chromium is still under development. Some features will not work. Also, the CDM is running in an unsandboxed utility process since we cannot load the CDM in a sandboxed utility process yet. These will be addressed in future CLs. BUG=403462, 725394, 561090 Review-Url: https://codereview.chromium.org/2900773004 Cr-Commit-Position: refs/heads/master@{#474186} Committed: https://chromium.googlesource.com/chromium/src/+/846b429c5175d3637e4183bc06eb417eee09482c

Patch Set 1 #

Patch Set 2 : rebase only #

Patch Set 3 : rebase and test fix #

Total comments: 5

Patch Set 4 : comments addressed #

Patch Set 5 : drop utility_process_host_impl.cc change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -32 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/media/encrypted_media_browsertest.cc View 1 2 4 chunks +9 lines, -6 lines 0 comments Download
M content/browser/service_manager/service_manager_context.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +12 lines, -8 lines 0 comments Download
M content/utility/BUILD.gn View 1 2 3 chunks +11 lines, -4 lines 0 comments Download
M content/utility/utility_service_factory.cc View 1 2 4 chunks +37 lines, -5 lines 0 comments Download
M media/BUILD.gn View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M media/base/media_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A media/cdm/cdm_adapter_factory.h View 1 chunk +39 lines, -0 lines 0 comments Download
A media/cdm/cdm_adapter_factory.cc View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
M media/cdm/cdm_allocator.h View 2 chunks +4 lines, -0 lines 0 comments Download
M media/media_options.gni View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M media/mojo/services/main.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 72 (59 generated)
xhwang
rebase only
3 years, 7 months ago (2017-05-22 22:54:39 UTC) #5
xhwang
jrummell: PTAL ddorwin: FYI
3 years, 7 months ago (2017-05-23 18:01:31 UTC) #42
jrummell
lgtm https://codereview.chromium.org/2900773004/diff/140001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2900773004/diff/140001/content/renderer/render_frame_impl.cc#newcode6795 content/renderer/render_frame_impl.cc:6795: #if BUILDFLAG(ENABLE_MEDIA_REMOTING) Is it possible for cdm_factory_ to ...
3 years, 7 months ago (2017-05-23 22:23:28 UTC) #46
xhwang
Thanks for the review! Comments-to-comments only. https://codereview.chromium.org/2900773004/diff/140001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2900773004/diff/140001/content/renderer/render_frame_impl.cc#newcode6795 content/renderer/render_frame_impl.cc:6795: #if BUILDFLAG(ENABLE_MEDIA_REMOTING) On ...
3 years, 7 months ago (2017-05-23 22:31:12 UTC) #47
xhwang
jam: Please content/ OWNERS review. rockot: FYI
3 years, 7 months ago (2017-05-23 22:32:52 UTC) #50
jam
lgtm https://codereview.chromium.org/2900773004/diff/140001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2900773004/diff/140001/content/renderer/render_frame_impl.cc#newcode6788 content/renderer/render_frame_impl.cc:6788: else nit: brace brackets per style guide
3 years, 7 months ago (2017-05-24 00:36:33 UTC) #52
xhwang
comments addressed
3 years, 7 months ago (2017-05-24 00:51:09 UTC) #53
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/2900773004/160001
3 years, 7 months ago (2017-05-24 00:52:39 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/434831)
3 years, 7 months ago (2017-05-24 04:24:58 UTC) #61
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/2900773004/180001
3 years, 7 months ago (2017-05-24 05:51:54 UTC) #67
commit-bot: I haz the power
Committed patchset #5 (id:180001) as https://chromium.googlesource.com/chromium/src/+/846b429c5175d3637e4183bc06eb417eee09482c
3 years, 7 months ago (2017-05-24 06:45:37 UTC) #70
vitaliii
A revert of this CL (patchset #5 id:180001) has been created in https://codereview.chromium.org/2902943002/ by vitaliii@chromium.org. ...
3 years, 7 months ago (2017-05-24 07:53:04 UTC) #71
vitaliii
3 years, 7 months ago (2017-05-24 08:09:58 UTC) #72
Message was sent while issue was closed.
On 2017/05/24 07:53:04, vitaliii wrote:
> A revert of this CL (patchset #5 id:180001) has been created in
> https://codereview.chromium.org/2902943002/ by mailto:vitaliii@chromium.org.
> 
> The reason for reverting is: This CL seems to break |generate_build_files|
step
> on chromium.chrome/Google Chrome Win..

After the revert, |generate_build_files| step is green again. Please see
crbug.com/725808 for details.

Powered by Google App Engine
This is Rietveld 408576698