1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 6 #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 7 8 #include "base/files/file_path.h" 9 10 // This file defines constants common to all Widevine CDM versions. 11 12 // Widevine CDM version contains 4 components, e.g. 1.4.0.195. 13 const int kWidevineCdmVersionNumComponents = 4; 14 15 // "alpha" is a temporary name until a convention is defined. 16 const char kWidevineKeySystem[] = "com.widevine.alpha"; 17 18 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module"; 19 // Will be parsed as HTML. 20 const char kWidevineCdmDescription[] = 21 "Enables Widevine licenses for playback of HTML audio/video content."; 22 #if defined(ENABLE_PEPPER_CDMS) 23 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm"; 24 const char kWidevineCdmPluginMimeTypeDescription[] = 25 "Widevine Content Decryption Module"; 26 #endif 27 28 // File name of the CDM on different platforms. 29 const char kWidevineCdmFileName[] = 30 #if defined(OS_MACOSX) 31 "libwidevinecdm.dylib"; 32 #elif defined(OS_WIN) 33 "widevinecdm.dll"; 34 #else // OS_LINUX, etc. 35 "libwidevinecdm.so"; 36 #endif 37 38 #if defined(ENABLE_PEPPER_CDMS) 39 // File name of the adapter on different platforms. 40 const char kWidevineCdmAdapterFileName[] = 41 #if defined(OS_MACOSX) 42 "widevinecdmadapter.plugin"; 43 #elif defined(OS_WIN) 44 "widevinecdmadapter.dll"; 45 #else // OS_LINUX, etc. 46 "libwidevinecdmadapter.so"; 47 #endif 48 #endif // defined(ENABLE_PEPPER_CDMS) 49 50 51 #if defined(ENABLE_PEPPER_CDMS) && (defined(OS_MACOSX) || defined(OS_WIN)) 52 // CDM is installed by the component installer instead of the Chrome installer. 53 #define WIDEVINE_CDM_IS_COMPONENT 54 #endif 55 56 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 57