| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ | 5 #ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ |
| 6 #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ | 6 #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ |
| 7 | 7 |
| 8 #include "ppapi/features/features.h" |
| 9 |
| 8 // This file defines constants common to all Widevine CDM versions. | 10 // This file defines constants common to all Widevine CDM versions. |
| 9 | 11 |
| 10 // Widevine CDM version contains 4 components, e.g. 1.4.0.195. | 12 // Widevine CDM version contains 4 components, e.g. 1.4.0.195. |
| 11 const int kWidevineCdmVersionNumComponents = 4; | 13 const int kWidevineCdmVersionNumComponents = 4; |
| 12 | 14 |
| 13 // "alpha" is a temporary name until a convention is defined. | 15 // "alpha" is a temporary name until a convention is defined. |
| 14 const char kWidevineKeySystem[] = "com.widevine.alpha"; | 16 const char kWidevineKeySystem[] = "com.widevine.alpha"; |
| 15 | 17 |
| 16 // This type is used to register the Widevine CDM. | 18 // This type is used to register the Widevine CDM. |
| 17 const char kWidevineCdmType[] = "Widevine"; | 19 const char kWidevineCdmType[] = "Widevine"; |
| 18 | 20 |
| 19 // Widevine CDM files are in a directory with this name. | 21 // Widevine CDM files are in a directory with this name. |
| 20 const char kWidevineCdmBaseDirectory[] = "WidevineCdm"; | 22 const char kWidevineCdmBaseDirectory[] = "WidevineCdm"; |
| 21 | 23 |
| 22 // This name is used by UMA. Do not change it! | 24 // This name is used by UMA. Do not change it! |
| 23 const char kWidevineKeySystemNameForUMA[] = "Widevine"; | 25 const char kWidevineKeySystemNameForUMA[] = "Widevine"; |
| 24 | 26 |
| 25 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module"; | 27 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module"; |
| 26 | 28 |
| 27 // Will be parsed as HTML. | 29 // Will be parsed as HTML. |
| 28 const char kWidevineCdmDescription[] = | 30 const char kWidevineCdmDescription[] = |
| 29 "Enables Widevine licenses for playback of HTML audio/video content."; | 31 "Enables Widevine licenses for playback of HTML audio/video content."; |
| 30 | 32 |
| 31 #if defined(ENABLE_PEPPER_CDMS) | 33 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 32 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm"; | 34 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm"; |
| 33 const char kWidevineCdmPluginMimeTypeDescription[] = | 35 const char kWidevineCdmPluginMimeTypeDescription[] = |
| 34 "Widevine Content Decryption Module"; | 36 "Widevine Content Decryption Module"; |
| 35 | 37 |
| 36 // Name of the CDM library. | 38 // Name of the CDM library. |
| 37 const char kWidevineCdmLibraryName[] = "widevinecdm"; | 39 const char kWidevineCdmLibraryName[] = "widevinecdm"; |
| 38 | 40 |
| 39 // File name of the adapter on different platforms. | 41 // File name of the adapter on different platforms. |
| 40 const char kWidevineCdmAdapterFileName[] = | 42 const char kWidevineCdmAdapterFileName[] = |
| 41 #if defined(OS_MACOSX) | 43 #if defined(OS_MACOSX) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 53 const char kCdmSupportedCodecVp8[] = "vp8"; | 55 const char kCdmSupportedCodecVp8[] = "vp8"; |
| 54 const char kCdmSupportedCodecVp9[] = "vp9.0"; | 56 const char kCdmSupportedCodecVp9[] = "vp9.0"; |
| 55 #if defined(USE_PROPRIETARY_CODECS) | 57 #if defined(USE_PROPRIETARY_CODECS) |
| 56 const char kCdmSupportedCodecAvc1[] = "avc1"; | 58 const char kCdmSupportedCodecAvc1[] = "avc1"; |
| 57 #endif // defined(USE_PROPRIETARY_CODECS) | 59 #endif // defined(USE_PROPRIETARY_CODECS) |
| 58 | 60 |
| 59 #if defined(OS_MACOSX) || defined(OS_WIN) | 61 #if defined(OS_MACOSX) || defined(OS_WIN) |
| 60 // CDM is installed by the component installer instead of the Chrome installer. | 62 // CDM is installed by the component installer instead of the Chrome installer. |
| 61 #define WIDEVINE_CDM_IS_COMPONENT | 63 #define WIDEVINE_CDM_IS_COMPONENT |
| 62 #endif // defined(OS_MACOSX) || defined(OS_WIN) | 64 #endif // defined(OS_MACOSX) || defined(OS_WIN) |
| 63 #endif // defined(ENABLE_PEPPER_CDMS) | 65 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 64 | 66 |
| 65 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ | 67 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ |
| OLD | NEW |