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

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

Issue 2048523002: Fix base::GetNativeLibraryName() for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_lib_clean
Patch Set: rebase correctly, update comment Created 4 years, 6 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
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 // This file defines constants common to all Widevine CDM versions. 8 // This file defines constants common to all Widevine CDM versions.
9 9
10 // 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.
(...skipping 15 matching lines...) Expand all
26 26
27 // Will be parsed as HTML. 27 // Will be parsed as HTML.
28 const char kWidevineCdmDescription[] = 28 const char kWidevineCdmDescription[] =
29 "Enables Widevine licenses for playback of HTML audio/video content."; 29 "Enables Widevine licenses for playback of HTML audio/video content.";
30 30
31 #if defined(ENABLE_PEPPER_CDMS) 31 #if defined(ENABLE_PEPPER_CDMS)
32 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm"; 32 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
33 const char kWidevineCdmPluginMimeTypeDescription[] = 33 const char kWidevineCdmPluginMimeTypeDescription[] =
34 "Widevine Content Decryption Module"; 34 "Widevine Content Decryption Module";
35 35
36 // File name of the CDM on different platforms. 36 // File name of the CDM on different platforms.
Mark Mentovai 2016/06/10 23:39:59 Not a filename. Not on different platforms.
Lei Zhang 2016/06/13 19:10:07 Done.
37 const char kWidevineCdmFileName[] = 37 const char kWidevineCdmName[] = "widevinecdm";
Mark Mentovai 2016/06/10 23:39:59 Maybe kWidevineCdmLibraryName is better.
Mark Mentovai 2016/06/10 23:39:59 The definitions are right here in the .h?
Lei Zhang 2016/06/13 19:10:07 Done.
Lei Zhang 2016/06/13 19:10:07 There's no .cc file. *innocent look*
38 #if defined(OS_MACOSX)
39 "libwidevinecdm.dylib";
40 #elif defined(OS_WIN)
41 "widevinecdm.dll";
42 #else // OS_LINUX, etc.
43 "libwidevinecdm.so";
44 #endif
45 38
46 // File name of the adapter on different platforms. 39 // File name of the adapter on different platforms.
47 const char kWidevineCdmAdapterFileName[] = 40 const char kWidevineCdmAdapterFileName[] =
48 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
49 "widevinecdmadapter.plugin"; 42 "widevinecdmadapter.plugin";
50 #elif defined(OS_WIN) 43 #elif defined(OS_WIN)
51 "widevinecdmadapter.dll"; 44 "widevinecdmadapter.dll";
52 #else // OS_LINUX, etc. 45 #else // OS_LINUX, etc.
53 "libwidevinecdmadapter.so"; 46 "libwidevinecdmadapter.so";
54 #endif 47 #endif
55 48
56 // The following strings are used to communicate supported codecs (from the 49 // The following strings are used to communicate supported codecs (from the
57 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params. 50 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params.
58 const char kCdmSupportedCodecsParamName[] = "codecs"; 51 const char kCdmSupportedCodecsParamName[] = "codecs";
59 const char kCdmSupportedCodecsValueDelimiter = ','; 52 const char kCdmSupportedCodecsValueDelimiter = ',';
60 const char kCdmSupportedCodecVp8[] = "vp8"; 53 const char kCdmSupportedCodecVp8[] = "vp8";
61 const char kCdmSupportedCodecVp9[] = "vp9.0"; 54 const char kCdmSupportedCodecVp9[] = "vp9.0";
62 #if defined(USE_PROPRIETARY_CODECS) 55 #if defined(USE_PROPRIETARY_CODECS)
63 const char kCdmSupportedCodecAvc1[] = "avc1"; 56 const char kCdmSupportedCodecAvc1[] = "avc1";
64 #endif // defined(USE_PROPRIETARY_CODECS) 57 #endif // defined(USE_PROPRIETARY_CODECS)
65 58
66 #if defined(OS_MACOSX) || defined(OS_WIN) 59 #if defined(OS_MACOSX) || defined(OS_WIN)
67 // 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.
68 #define WIDEVINE_CDM_IS_COMPONENT 61 #define WIDEVINE_CDM_IS_COMPONENT
69 #endif // defined(OS_MACOSX) || defined(OS_WIN) 62 #endif // defined(OS_MACOSX) || defined(OS_WIN)
70 #endif // defined(ENABLE_PEPPER_CDMS) 63 #endif // defined(ENABLE_PEPPER_CDMS)
71 64
72 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 65 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
OLDNEW
« media/cdm/external_clear_key_test_helper.cc ('K') | « net/udp/udp_socket_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698