ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / third_party / widevine / cdm / widevine_cdm_common.h
blob9004555b8e54bf9c45b1e80eae2336e05b8e4032
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 #include "base/files/file_path.h"
10 // This file defines constants common to all Widevine CDM versions.
12 // Widevine CDM version contains 4 components, e.g. 1.4.0.195.
13 const int kWidevineCdmVersionNumComponents = 4;
15 // "alpha" is a temporary name until a convention is defined.
16 const char kWidevineKeySystem[] = "com.widevine.alpha";
18 // This name is used by UMA. Do not change it!
19 const char kWidevineKeySystemNameForUMA[] = "Widevine";
21 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
22 // Will be parsed as HTML.
23 const char kWidevineCdmDescription[] =
24 "Enables Widevine licenses for playback of HTML audio/video content.";
26 #if defined(ENABLE_PEPPER_CDMS)
27 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
28 const char kWidevineCdmPluginMimeTypeDescription[] =
29 "Widevine Content Decryption Module";
31 // File name of the CDM on different platforms.
32 const char kWidevineCdmFileName[] =
33 #if defined(OS_MACOSX)
34 "libwidevinecdm.dylib";
35 #elif defined(OS_WIN)
36 "widevinecdm.dll";
37 #else // OS_LINUX, etc.
38 "libwidevinecdm.so";
39 #endif
41 // File name of the adapter on different platforms.
42 const char kWidevineCdmAdapterFileName[] =
43 #if defined(OS_MACOSX)
44 "widevinecdmadapter.plugin";
45 #elif defined(OS_WIN)
46 "widevinecdmadapter.dll";
47 #else // OS_LINUX, etc.
48 "libwidevinecdmadapter.so";
49 #endif
51 // The following strings are used to communicate supported codecs (from the
52 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params.
53 const char kCdmSupportedCodecsParamName[] = "codecs";
54 const char kCdmSupportedCodecsValueDelimiter = ',';
55 const char kCdmSupportedCodecVorbis[] = "vorbis";
56 const char kCdmSupportedCodecVp8[] = "vp8";
57 const char kCdmSupportedCodecVp9[] = "vp9.0";
58 #if defined(USE_PROPRIETARY_CODECS)
59 const char kCdmSupportedCodecAac[] = "aac";
60 const char kCdmSupportedCodecAvc1[] = "avc1";
61 #endif // defined(USE_PROPRIETARY_CODECS)
63 #if defined(OS_MACOSX) || defined(OS_WIN)
64 // CDM is installed by the component installer instead of the Chrome installer.
65 #define WIDEVINE_CDM_IS_COMPONENT
66 #endif // defined(OS_MACOSX) || defined(OS_WIN)
67 #endif // defined(ENABLE_PEPPER_CDMS)
69 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_