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

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

Issue 2643333002: Convert USE_PROPRIETARY_CODECS to a buildflag header. (Closed)
Patch Set: Created 3 years, 11 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') | no next file » | 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 "media/media_features.h"
8 #include "ppapi/features/features.h" 9 #include "ppapi/features/features.h"
9 10
10 // This file defines constants common to all Widevine CDM versions. 11 // This file defines constants common to all Widevine CDM versions.
11 12
12 // Widevine CDM version contains 4 components, e.g. 1.4.0.195. 13 // Widevine CDM version contains 4 components, e.g. 1.4.0.195.
13 const int kWidevineCdmVersionNumComponents = 4; 14 const int kWidevineCdmVersionNumComponents = 4;
14 15
15 // "alpha" is a temporary name until a convention is defined. 16 // "alpha" is a temporary name until a convention is defined.
16 const char kWidevineKeySystem[] = "com.widevine.alpha"; 17 const char kWidevineKeySystem[] = "com.widevine.alpha";
17 18
(...skipping 29 matching lines...) Expand all
47 #else // OS_LINUX, etc. 48 #else // OS_LINUX, etc.
48 "libwidevinecdmadapter.so"; 49 "libwidevinecdmadapter.so";
49 #endif 50 #endif
50 51
51 // The following strings are used to communicate supported codecs (from the 52 // The following strings are used to communicate supported codecs (from the
52 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params. 53 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params.
53 const char kCdmSupportedCodecsParamName[] = "codecs"; 54 const char kCdmSupportedCodecsParamName[] = "codecs";
54 const char kCdmSupportedCodecsValueDelimiter = ','; 55 const char kCdmSupportedCodecsValueDelimiter = ',';
55 const char kCdmSupportedCodecVp8[] = "vp8"; 56 const char kCdmSupportedCodecVp8[] = "vp8";
56 const char kCdmSupportedCodecVp9[] = "vp9.0"; 57 const char kCdmSupportedCodecVp9[] = "vp9.0";
57 #if defined(USE_PROPRIETARY_CODECS) 58 #if BUILDFLAG(USE_PROPRIETARY_CODECS)
58 const char kCdmSupportedCodecAvc1[] = "avc1"; 59 const char kCdmSupportedCodecAvc1[] = "avc1";
59 #endif // defined(USE_PROPRIETARY_CODECS) 60 #endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
60 61
61 #if defined(OS_MACOSX) || defined(OS_WIN) 62 #if defined(OS_MACOSX) || defined(OS_WIN)
62 // CDM is installed by the component installer instead of the Chrome installer. 63 // CDM is installed by the component installer instead of the Chrome installer.
63 #define WIDEVINE_CDM_IS_COMPONENT 64 #define WIDEVINE_CDM_IS_COMPONENT
64 #endif // defined(OS_MACOSX) || defined(OS_WIN) 65 #endif // defined(OS_MACOSX) || defined(OS_WIN)
65 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 66 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS)
66 67
67 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 68 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
OLDNEW
« no previous file with comments | « third_party/widevine/cdm/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698