Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_ |
| 6 #define CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_ | 6 #define CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 | 10 |
| 11 // Defines bitmask values used to specify supported codecs. | |
|
ddorwin
2013/09/17 22:29:08
As mentioned before, since this could be used for
qinmin
2013/09/18 00:45:44
Done.
| |
| 12 // Each value represents a codec within a specific container. | |
| 13 enum SupportedCodecs { | |
| 14 NO_SUPPORTED_CODECS = 0, | |
| 15 WEBM_VP8_AND_VORBIS = 1 << 0, | |
| 16 #if defined(USE_PROPRIETARY_CODECS) | |
| 17 MP4_AAC = 1 << 1, | |
| 18 MP4_AVC1 = 1 << 2, | |
| 19 #endif // defined(USE_PROPRIETARY_CODECS) | |
| 20 }; | |
| 21 | |
| 11 // The Widevine CDM adapter and Widevine CDM are in this directory. | 22 // The Widevine CDM adapter and Widevine CDM are in this directory. |
| 12 extern const base::FilePath::CharType kWidevineCdmBaseDirectory[]; | 23 extern const base::FilePath::CharType kWidevineCdmBaseDirectory[]; |
| 13 | 24 |
| 14 extern const char kWidevineCdmPluginExtension[]; | 25 extern const char kWidevineCdmPluginExtension[]; |
| 15 | 26 |
| 16 // Permission bits for Widevine CDM plugin. | 27 // Permission bits for Widevine CDM plugin. |
| 17 extern const int32 kWidevineCdmPluginPermissions; | 28 extern const int32 kWidevineCdmPluginPermissions; |
| 18 | 29 |
| 30 #if defined(OS_ANDROID) | |
| 31 // UUID for widevine. | |
| 32 extern const uint8 kWidevineUuid[16]; | |
|
ddorwin
2013/09/17 22:29:08
We only seem to use this in one location. Do we re
qinmin
2013/09/18 00:45:44
ok, moved it back
On 2013/09/17 22:29:08, ddorwin
| |
| 33 #endif | |
| 34 | |
| 19 #endif // CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_ | 35 #endif // CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_ |
| OLD | NEW |