diff options
author | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 00:10:09 +0000 |
---|---|---|
committer | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 00:10:09 +0000 |
commit | a9cde19aba88ab75887dc6f696e74f405c786e22 (patch) | |
tree | ebcb7090e09b076a66b4df6025178f1be1bc7d87 /third_party | |
parent | b97d349ad8f6b1da6a15ed7d6cd3b0eef930b86b (diff) | |
download | chromium_src-a9cde19aba88ab75887dc6f696e74f405c786e22.zip chromium_src-a9cde19aba88ab75887dc6f696e74f405c786e22.tar.gz chromium_src-a9cde19aba88ab75887dc6f696e74f405c786e22.tar.bz2 |
Add the Widevine CDM to Chrome.
This CL adds the key system and enables the media stack to find the CDM.
BUG=149772
TEST=Play content that uses this key system.
Review URL: https://chromiumcodereview.appspot.com/11099059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161455 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/widevine/cdm/widevine_cdm_common.h | 33 | ||||
-rw-r--r-- | third_party/widevine/cdm/widevine_cdm_version.h | 3 |
2 files changed, 35 insertions, 1 deletions
diff --git a/third_party/widevine/cdm/widevine_cdm_common.h b/third_party/widevine/cdm/widevine_cdm_common.h new file mode 100644 index 0000000..752b68b --- /dev/null +++ b/third_party/widevine/cdm/widevine_cdm_common.h @@ -0,0 +1,33 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WIDEVINE_CDM_COMMON_H_INCLUDED_ +#define WIDEVINE_CDM_COMMON_H_INCLUDED_ + +#include "base/file_path.h" + +// This file defines constants common to all Widevine CDM versions. + +// "alpha" is a temporary name until a convention is defined. +const char kWidevineKeySystem[] = "com.widevine.alpha"; + +const char kWidevineCdmPluginName[] = "Widevine HTML CDM"; +// Will be parsed as HTML. +const char kWidevineCdmPluginDescription[] = + "This plugin enables Widevine licenses for playback of HTML audio/video " + "content."; +const char kWidevineCdmPluginMimeType[] ="application/x-ppapi-widevine-cdm"; +const char kWidevineCdmPluginMimeTypeDescription[] = "Widevine HTML CDM"; + +// File name of the plugin on different platforms. +const FilePath::CharType kWidevineCdmPluginFileName[] = +#if defined(OS_MACOSX) + FILE_PATH_LITERAL("widevinecdmplugin.plugin"); +#elif defined(OS_WIN) + FILE_PATH_LITERAL("widevinecdmplugin.dll"); +#else // OS_LINUX, etc. + FILE_PATH_LITERAL("libwidevinecdmplugin.so"); +#endif + +#endif // WIDEVINE_CDM_COMMON_H_INCLUDED_ diff --git a/third_party/widevine/cdm/widevine_cdm_version.h b/third_party/widevine/cdm/widevine_cdm_version.h index 5b1ffeb..c3b624f 100644 --- a/third_party/widevine/cdm/widevine_cdm_version.h +++ b/third_party/widevine/cdm/widevine_cdm_version.h @@ -8,7 +8,8 @@ #ifndef WIDEVINE_CDM_VERSION_H_INCLUDED_ #define WIDEVINE_CDM_VERSION_H_INCLUDED_ -// If the Widevine CDM were available, we'd define two things: +// If the Widevine CDM were available, we would include +// third_party/widevine/cdm/widevine_cdm_common.h and define two things: // - WIDEVINE_CDM_AVAILABLE (to indicate availability), and // - WIDEVINE_CDM_VERSION_STRING (with the version of the CDM that's available // as a string, e.g., "1.0.123.456"). |