Add ICU message format support
[chromium-blink-merge.git] / third_party / widevine / cdm / widevine_cdm_common.h
blob50c5ea465663c8e34870c32fb386421ae7e356b0
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.
5 #ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
6 #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
8 // This file defines constants common to all Widevine CDM versions.
10 // Widevine CDM version contains 4 components, e.g. 1.4.0.195.
11 const int kWidevineCdmVersionNumComponents = 4;
13 // "alpha" is a temporary name until a convention is defined.
14 const char kWidevineKeySystem[] = "com.widevine.alpha";
16 // This name is used by UMA. Do not change it!
17 const char kWidevineKeySystemNameForUMA[] = "Widevine";
19 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
20 // Will be parsed as HTML.
21 const char kWidevineCdmDescription[] =
22 "Enables Widevine licenses for playback of HTML audio/video content.";
24 #if defined(ENABLE_PEPPER_CDMS)
25 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
26 const char kWidevineCdmPluginMimeTypeDescription[] =
27 "Widevine Content Decryption Module";
29 // File name of the CDM on different platforms.
30 const char kWidevineCdmFileName[] =
31 #if defined(OS_MACOSX)
32 "libwidevinecdm.dylib";
33 #elif defined(OS_WIN)
34 "widevinecdm.dll";
35 #else // OS_LINUX, etc.
36 "libwidevinecdm.so";
37 #endif
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
49 // The following strings are used to communicate supported codecs (from the
50 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params.
51 const char kCdmSupportedCodecsParamName[] = "codecs";
52 const char kCdmSupportedCodecsValueDelimiter = ',';
53 const char kCdmSupportedCodecVorbis[] = "vorbis";
54 const char kCdmSupportedCodecVp8[] = "vp8";
55 const char kCdmSupportedCodecVp9[] = "vp9.0";
56 #if defined(USE_PROPRIETARY_CODECS)
57 const char kCdmSupportedCodecAac[] = "aac";
58 const char kCdmSupportedCodecAvc1[] = "avc1";
59 #endif // defined(USE_PROPRIETARY_CODECS)
61 #if defined(OS_MACOSX) || defined(OS_WIN)
62 // CDM is installed by the component installer instead of the Chrome installer.
63 #define WIDEVINE_CDM_IS_COMPONENT
64 #endif // defined(OS_MACOSX) || defined(OS_WIN)
65 #endif // defined(ENABLE_PEPPER_CDMS)
67 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_