Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/widevine/cdm/widevine_cdm_common.h

Issue 2412493003: Revert of Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/widevine/cdm/DEPS ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
10 // This file defines constants common to all Widevine CDM versions. 8 // This file defines constants common to all Widevine CDM versions.
11 9
12 // Widevine CDM version contains 4 components, e.g. 1.4.0.195. 10 // Widevine CDM version contains 4 components, e.g. 1.4.0.195.
13 const int kWidevineCdmVersionNumComponents = 4; 11 const int kWidevineCdmVersionNumComponents = 4;
14 12
15 // "alpha" is a temporary name until a convention is defined. 13 // "alpha" is a temporary name until a convention is defined.
16 const char kWidevineKeySystem[] = "com.widevine.alpha"; 14 const char kWidevineKeySystem[] = "com.widevine.alpha";
17 15
18 // This type is used to register the Widevine CDM. 16 // This type is used to register the Widevine CDM.
19 const char kWidevineCdmType[] = "Widevine"; 17 const char kWidevineCdmType[] = "Widevine";
20 18
21 // Widevine CDM files are in a directory with this name. 19 // Widevine CDM files are in a directory with this name.
22 const char kWidevineCdmBaseDirectory[] = "WidevineCdm"; 20 const char kWidevineCdmBaseDirectory[] = "WidevineCdm";
23 21
24 // This name is used by UMA. Do not change it! 22 // This name is used by UMA. Do not change it!
25 const char kWidevineKeySystemNameForUMA[] = "Widevine"; 23 const char kWidevineKeySystemNameForUMA[] = "Widevine";
26 24
27 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module"; 25 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
28 26
29 // Will be parsed as HTML. 27 // Will be parsed as HTML.
30 const char kWidevineCdmDescription[] = 28 const char kWidevineCdmDescription[] =
31 "Enables Widevine licenses for playback of HTML audio/video content."; 29 "Enables Widevine licenses for playback of HTML audio/video content.";
32 30
33 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 31 #if defined(ENABLE_PEPPER_CDMS)
34 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm"; 32 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
35 const char kWidevineCdmPluginMimeTypeDescription[] = 33 const char kWidevineCdmPluginMimeTypeDescription[] =
36 "Widevine Content Decryption Module"; 34 "Widevine Content Decryption Module";
37 35
38 // Name of the CDM library. 36 // Name of the CDM library.
39 const char kWidevineCdmLibraryName[] = "widevinecdm"; 37 const char kWidevineCdmLibraryName[] = "widevinecdm";
40 38
41 // File name of the adapter on different platforms. 39 // File name of the adapter on different platforms.
42 const char kWidevineCdmAdapterFileName[] = 40 const char kWidevineCdmAdapterFileName[] =
43 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
(...skipping 11 matching lines...) Expand all
55 const char kCdmSupportedCodecVp8[] = "vp8"; 53 const char kCdmSupportedCodecVp8[] = "vp8";
56 const char kCdmSupportedCodecVp9[] = "vp9.0"; 54 const char kCdmSupportedCodecVp9[] = "vp9.0";
57 #if defined(USE_PROPRIETARY_CODECS) 55 #if defined(USE_PROPRIETARY_CODECS)
58 const char kCdmSupportedCodecAvc1[] = "avc1"; 56 const char kCdmSupportedCodecAvc1[] = "avc1";
59 #endif // defined(USE_PROPRIETARY_CODECS) 57 #endif // defined(USE_PROPRIETARY_CODECS)
60 58
61 #if defined(OS_MACOSX) || defined(OS_WIN) 59 #if defined(OS_MACOSX) || defined(OS_WIN)
62 // CDM is installed by the component installer instead of the Chrome installer. 60 // CDM is installed by the component installer instead of the Chrome installer.
63 #define WIDEVINE_CDM_IS_COMPONENT 61 #define WIDEVINE_CDM_IS_COMPONENT
64 #endif // defined(OS_MACOSX) || defined(OS_WIN) 62 #endif // defined(OS_MACOSX) || defined(OS_WIN)
65 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 63 #endif // defined(ENABLE_PEPPER_CDMS)
66 64
67 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 65 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
OLDNEW
« no previous file with comments | « third_party/widevine/cdm/DEPS ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698