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

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

Issue 772043004: Replace WIDEVINE_CDM_AVAILABLE with a gyp define 'enable_widevine_cdm'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years 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 #if defined(ENABLE_WIDEVINE_CDM)
9
8 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
9 11
10 // This file defines constants common to all Widevine CDM versions. 12 // This file defines constants common to all Widevine CDM versions.
11 13
12 // Widevine CDM version contains 4 components, e.g. 1.4.0.195. 14 // Widevine CDM version contains 4 components, e.g. 1.4.0.195.
13 const int kWidevineCdmVersionNumComponents = 4; 15 const int kWidevineCdmVersionNumComponents = 4;
14 16
15 // "alpha" is a temporary name until a convention is defined. 17 // "alpha" is a temporary name until a convention is defined.
16 const char kWidevineKeySystem[] = "com.widevine.alpha"; 18 const char kWidevineKeySystem[] = "com.widevine.alpha";
17 19
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params. 54 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params.
53 const char kCdmSupportedCodecsParamName[] = "codecs"; 55 const char kCdmSupportedCodecsParamName[] = "codecs";
54 const char kCdmSupportedCodecsValueDelimiter = ','; 56 const char kCdmSupportedCodecsValueDelimiter = ',';
55 const char kCdmSupportedCodecVorbis[] = "vorbis"; 57 const char kCdmSupportedCodecVorbis[] = "vorbis";
56 const char kCdmSupportedCodecVp8[] = "vp8"; 58 const char kCdmSupportedCodecVp8[] = "vp8";
57 const char kCdmSupportedCodecVp9[] = "vp9.0"; 59 const char kCdmSupportedCodecVp9[] = "vp9.0";
58 #if defined(USE_PROPRIETARY_CODECS) 60 #if defined(USE_PROPRIETARY_CODECS)
59 const char kCdmSupportedCodecAac[] = "aac"; 61 const char kCdmSupportedCodecAac[] = "aac";
60 const char kCdmSupportedCodecAvc1[] = "avc1"; 62 const char kCdmSupportedCodecAvc1[] = "avc1";
61 #endif // defined(USE_PROPRIETARY_CODECS) 63 #endif // defined(USE_PROPRIETARY_CODECS)
62 64
ddorwin 2014/12/15 21:56:48 Restore #endif // defined(ENABLE_PEPPER_CDMS) bel
63 #if defined(OS_MACOSX) || defined(OS_WIN) 65 #endif // defined(ENABLE_WIDEVINE_CDM)
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)
68 66
69 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 67 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
OLDNEW
« no previous file with comments | « third_party/widevine/cdm/widevine_cdm.gyp ('k') | third_party/widevine/cdm/widevine_cdm_version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698