blob: 2b3ef0dbb653038210b2bb9304bd079c945640d9 [file] [log] [blame]
// 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_WIDEVINE_CDM_COMMON_H_
#define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
#include "base/files/file_path.h"
// This file defines constants common to all Widevine CDM versions.
// Widevine CDM version contains 4 components, e.g. 1.4.0.195.
const int kWidevineCdmVersionNumComponents = 4;
// "alpha" is a temporary name until a convention is defined.
const char kWidevineKeySystem[] = "com.widevine.alpha";
const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
// Will be parsed as HTML.
const char kWidevineCdmDescription[] =
"Enables Widevine licenses for playback of HTML audio/video content.";
#if defined(ENABLE_PEPPER_CDMS)
const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
const char kWidevineCdmPluginMimeTypeDescription[] =
"Widevine Content Decryption Module";
// File name of the CDM on different platforms.
const char kWidevineCdmFileName[] =
#if defined(OS_MACOSX)
"libwidevinecdm.dylib";
#elif defined(OS_WIN)
"widevinecdm.dll";
#else // OS_LINUX, etc.
"libwidevinecdm.so";
#endif
// File name of the adapter on different platforms.
const char kWidevineCdmAdapterFileName[] =
#if defined(OS_MACOSX)
"widevinecdmadapter.plugin";
#elif defined(OS_WIN)
"widevinecdmadapter.dll";
#else // OS_LINUX, etc.
"libwidevinecdmadapter.so";
#endif
#if defined(OS_MACOSX) || defined(OS_WIN)
// CDM is installed by the component installer instead of the Chrome installer.
#define WIDEVINE_CDM_IS_COMPONENT
#endif // defined(OS_MACOSX) || defined(OS_WIN)
#endif // defined(ENABLE_PEPPER_CDMS)
#endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_