Chromium Code Reviews| Index: content/public/common/eme_constants.h |
| diff --git a/content/public/common/eme_codec.h b/content/public/common/eme_constants.h |
| similarity index 68% |
| rename from content/public/common/eme_codec.h |
| rename to content/public/common/eme_constants.h |
| index 54ed0e600441a083c556c8d758048fc9d12acea8..e06b665fc886396f4b79ab0975cfe83c6ddac720 100644 |
| --- a/content/public/common/eme_codec.h |
| +++ b/content/public/common/eme_constants.h |
| @@ -2,11 +2,22 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CONTENT_PUBLIC_COMMON_EME_CODEC_H_ |
| -#define CONTENT_PUBLIC_COMMON_EME_CODEC_H_ |
| +#ifndef CONTENT_PUBLIC_COMMON_EME_CONSTANTS_H_ |
| +#define CONTENT_PUBLIC_COMMON_EME_CONSTANTS_H_ |
| namespace content { |
| +// Defines bitmask values that specify registered initialization data types used |
| +// in Encrypted Media Extensions (EME). |
| +// The mask values are stored in a SupportedInitDataTypes. |
| +enum EmeInitDataType { |
| + EME_INIT_DATA_TYPE_NONE = 0, |
| +#if defined(USE_PROPRIETARY_CODECS) |
| + EME_INIT_DATA_TYPE_CENC = 1 << 0, |
| +#endif // defined(USE_PROPRIETARY_CODECS) |
| + EME_INIT_DATA_TYPE_WEBM = 1 << 1, |
|
ddorwin
2014/09/23 22:48:16
nit: WEBM appears first in the other enum - be con
sandersd (OOO until July 31)
2014/09/24 22:22:33
Done.
|
| +}; |
| + |
| // Defines bitmask values that specify codecs used in Encrypted Media Extension |
| // (EME). Each value represents a codec within a specific container. |
| // The mask values are stored in a SupportedCodecs. |
| @@ -30,8 +41,9 @@ enum EmeCodec { |
| #endif // defined(USE_PROPRIETARY_CODECS) |
| }; |
| +typedef uint32 SupportedInitDataTypes; |
| typedef uint32 SupportedCodecs; |
| } // namespace content |
| -#endif // CONTENT_PUBLIC_COMMON_EME_CODEC_H_ |
| +#endif // CONTENT_CONSTANTS_H_ |