media: Add key system support info in CdmInfo

Desktop / Chromium - Xiaohan Wang [chromium.org] - 14 September 2017 01:35 EDT

This information is needed by the browser to load the correct CDM for a given key system.

Also, currently similar information is hardcoded in the render process about the mapping between the pepper type (equivalent of the CDM type) and the key system (see callers of IsPepperCdmAvailable()). In the future, this can also be used to implement key system support query using CdmRegistry.

BUG=510604 TEST=New unittests added.

Change-Id: I831e9cbdbe39c36d0cea7adbe5f9f8488218b08e Reviewed-on: https://chromium-review.googlesource.com/662923 Commit-Queue: Xiaohan Wang

286c1e7 media: Add key system support info in CdmInfo
.../widevine_cdm_component_installer.cc | 5 +-
chrome/common/chrome_content_client.cc | 13 +++--
.../browser/media/cdm_registry_impl_unittest.cc | 58 +++++++++++++---------
content/common/media/cdm_info.cc | 8 ++-
content/public/common/cdm_info.h | 13 ++++-
5 files changed, 64 insertions(+), 33 deletions(-)

Upstream: git.chromium.org


  • Share