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

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

Issue 15028015: Conditionally build support for Pepper-based CDMs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use AppendAscii() where possible. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/widevine/cdm/widevine_cdm.gyp ('k') | webkit/media/crypto/key_systems.h » ('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 "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 9
10 // This file defines constants common to all Widevine CDM versions. 10 // This file defines constants common to all Widevine CDM versions.
11 11
12 // 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.
13 const int kWidevineCdmVersionNumComponents = 4; 13 const int kWidevineCdmVersionNumComponents = 4;
14 14
15 // "alpha" is a temporary name until a convention is defined. 15 // "alpha" is a temporary name until a convention is defined.
16 const char kWidevineKeySystem[] = "com.widevine.alpha"; 16 const char kWidevineKeySystem[] = "com.widevine.alpha";
17 17
18 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module"; 18 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
19 // Will be parsed as HTML. 19 // Will be parsed as HTML.
20 const char kWidevineCdmDescription[] = 20 const char kWidevineCdmDescription[] =
21 "Enables Widevine licenses for playback of HTML audio/video content."; 21 "Enables Widevine licenses for playback of HTML audio/video content.";
22 const char kWidevineCdmPluginMimeType[] ="application/x-ppapi-widevine-cdm"; 22 #if defined(ENABLE_PEPPER_CDMS)
23 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
23 const char kWidevineCdmPluginMimeTypeDescription[] = 24 const char kWidevineCdmPluginMimeTypeDescription[] =
24 "Widevine Content Decryption Module"; 25 "Widevine Content Decryption Module";
26 #endif
25 27
26 // File name of the CDM on different platforms. 28 // File name of the CDM on different platforms.
27 const base::FilePath::CharType kWidevineCdmFileName[] = 29 const base::FilePath::CharType kWidevineCdmFileName[] =
28 #if defined(OS_MACOSX) 30 #if defined(OS_MACOSX)
29 FILE_PATH_LITERAL("widevinecdm.dylib"); 31 FILE_PATH_LITERAL("widevinecdm.dylib");
30 #elif defined(OS_WIN) 32 #elif defined(OS_WIN)
31 FILE_PATH_LITERAL("widevinecdm.dll"); 33 FILE_PATH_LITERAL("widevinecdm.dll");
32 #else // OS_LINUX, etc. 34 #else // OS_LINUX, etc.
33 FILE_PATH_LITERAL("libwidevinecdm.so"); 35 FILE_PATH_LITERAL("libwidevinecdm.so");
34 #endif 36 #endif
35 37
38 #if defined(ENABLE_PEPPER_CDMS)
36 // File name of the adapter on different platforms. 39 // File name of the adapter on different platforms.
37 const base::FilePath::CharType kWidevineCdmAdapterFileName[] = 40 const base::FilePath::CharType kWidevineCdmAdapterFileName[] =
38 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
39 FILE_PATH_LITERAL("widevinecdmadapter.plugin"); 42 FILE_PATH_LITERAL("widevinecdmadapter.plugin");
40 #elif defined(OS_WIN) 43 #elif defined(OS_WIN)
41 FILE_PATH_LITERAL("widevinecdmadapter.dll"); 44 FILE_PATH_LITERAL("widevinecdmadapter.dll");
42 #else // OS_LINUX, etc. 45 #else // OS_LINUX, etc.
43 FILE_PATH_LITERAL("libwidevinecdmadapter.so"); 46 FILE_PATH_LITERAL("libwidevinecdmadapter.so");
44 #endif 47 #endif
48 #endif // defined(ENABLE_PEPPER_CDMS)
45 49
46 #if defined(OS_MACOSX) || defined(OS_WIN) 50
51 #if defined(ENABLE_PEPPER_CDMS) && (defined(OS_MACOSX) || defined(OS_WIN))
47 // CDM is installed by the component installer instead of the Chrome installer. 52 // CDM is installed by the component installer instead of the Chrome installer.
48 #define WIDEVINE_CDM_IS_COMPONENT 53 #define WIDEVINE_CDM_IS_COMPONENT
49 #endif 54 #endif
50 55
51 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 56 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
OLDNEW
« no previous file with comments | « third_party/widevine/cdm/widevine_cdm.gyp ('k') | webkit/media/crypto/key_systems.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698