summaryrefslogtreecommitdiffstats
path: root/third_party/widevine
diff options
context:
space:
mode:
authorddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-26 10:52:06 +0000
committerddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-26 10:52:06 +0000
commit871bdf15d35bcbc1b5976b36e0bb7d3c938fb0df (patch)
tree21ad42fdafad835824f15fb8799393f28daf98b6 /third_party/widevine
parent65668059ffba74d0bafa7ca02acc8418c7491fe4 (diff)
downloadchromium_src-871bdf15d35bcbc1b5976b36e0bb7d3c938fb0df.zip
chromium_src-871bdf15d35bcbc1b5976b36e0bb7d3c938fb0df.tar.gz
chromium_src-871bdf15d35bcbc1b5976b36e0bb7d3c938fb0df.tar.bz2
Extract supported codecs from CDM component manifest.
Look for "x-cdm-codecs" in the manifest and set its value in WebPluginInfo::WebPluginMimeType::additional_param_* where it can be used to determine the types supported. The manifest is read when registering existing components in addition to new installs so that the manifest information is always available. Also updated the non-component path so the behavior is consistent for the consumer, which will be updated in a separate CL. BUG=311370 TEST=canPlayType() with various manifest configurations Review URL: https://codereview.chromium.org/42003002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/widevine')
-rw-r--r--third_party/widevine/cdm/widevine_cdm_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/widevine/cdm/widevine_cdm_common.h b/third_party/widevine/cdm/widevine_cdm_common.h
index 2b3ef0d..fb8ff85 100644
--- a/third_party/widevine/cdm/widevine_cdm_common.h
+++ b/third_party/widevine/cdm/widevine_cdm_common.h
@@ -45,6 +45,16 @@ const char kWidevineCdmAdapterFileName[] =
"libwidevinecdmadapter.so";
#endif
+// The following strings are used to communicate supported codecs (from the
+// component manifest) via WebPluginInfo::WebPluginMimeType's additional params.
+const char kCdmSupportedCodecsParamName[] = "codecs";
+const char kCdmSupportedCodecsValueDelimiter = ',';
+const char kCdmSupportedCodecVorbis[] = "vorbis";
+const char kCdmSupportedCodecVp8[] = "vp8";
+#if defined(USE_PROPRIETARY_CODECS)
+const char kCdmSupportedCodecAac[] = "aac";
+const char kCdmSupportedCodecAvc1[] = "avc1";
+#endif // defined(USE_PROPRIETARY_CODECS)
#if defined(OS_MACOSX) || defined(OS_WIN)
// CDM is installed by the component installer instead of the Chrome installer.